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

Unified Diff: chrome/browser/android/shortcut_info.h

Issue 2808263004: Add a new WebAPK-specific app banner shortcut source. (Closed)
Patch Set: Rebase Created 3 years, 7 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/browser/android/shortcut_info.h
diff --git a/chrome/browser/android/shortcut_info.h b/chrome/browser/android/shortcut_info.h
index fa22e4acfaddacdbbe9416bf8ae67c4e05c4f693..12c75336cf28da8681a1a1a000fea73278c37e8f 100644
--- a/chrome/browser/android/shortcut_info.h
+++ b/chrome/browser/android/shortcut_info.h
@@ -25,15 +25,30 @@ struct ShortcutInfo {
enum Source {
SOURCE_UNKNOWN = 0,
SOURCE_ADD_TO_HOMESCREEN_DEPRECATED = 1,
+
+ // Used for legacy PWAs added via the banner.
SOURCE_APP_BANNER = 2,
SOURCE_BOOKMARK_NAVIGATOR_WIDGET = 3,
SOURCE_BOOKMARK_SHORTCUT_WIDGET = 4,
+
+ // Used for legacy and WebAPKs launched from a notification.
SOURCE_NOTIFICATION = 5,
+
+ // Used for WebAPKs added via the menu item.
SOURCE_ADD_TO_HOMESCREEN_PWA = 6,
+
+ // Used for legacy PWAs added via the menu item.
SOURCE_ADD_TO_HOMESCREEN_STANDALONE = 7,
+
+ // Used for bookmark-type shortcuts that launch the tabbed browser.
SOURCE_ADD_TO_HOMESCREEN_SHORTCUT = 8,
+
+ // Used for WebAPKs launched via an external intent.
SOURCE_EXTERNAL_INTENT = 9,
- SOURCE_COUNT = 10
+
+ // Used for WebAPK PWAs added via the banner.
+ SOURCE_APP_BANNER_WEBAPK = 10,
+ SOURCE_COUNT = 11
};
explicit ShortcutInfo(const GURL& shortcut_url);

Powered by Google App Engine
This is Rietveld 408576698