Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1512)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkBuilder.java

Issue 2031213004: Upstream: Create WebAPK when user selects "Add to Home screen" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkBuilder.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkBuilder.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkBuilder.java
new file mode 100644
index 0000000000000000000000000000000000000000..bf3e4a99799733ee2f7359f8771ff786195944bb
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkBuilder.java
@@ -0,0 +1,22 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.chrome.browser.webapps;
+
+import android.graphics.Bitmap;
+
+/**
+ * Interface for building WebAPKs.
+ */
+public interface WebApkBuilder {
+ /**
+ * Asynchronously build WebAPK.
+ * @param startUrl: The url that the WebAPK should navigate to when launched from the app list.
+ * @param scope: Navigations from the WebAPK to URLs with sub-origin {@link scope} will stay
gone 2016/06/07 17:46:17 indent this so that "within" is aligned with "Navi
+ * within the WebAPK.
+ * @param appName: Name for the app list.
+ * @param icon: Icon for the app list.
+ */
+ public void buildWebApkAsync(String startUrl, String scope, String appName, Bitmap appIcon);
gone 2016/06/07 17:46:17 interface methods are automatically public. Remov
+}

Powered by Google App Engine
This is Rietveld 408576698