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

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

Issue 2050933002: Upstream: Add additional checks before creating a WebAPK after clicking "Add to Homescreen" (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/browser/android/shortcut_info.h
diff --git a/chrome/browser/android/shortcut_info.h b/chrome/browser/android/shortcut_info.h
index 4cca0127d1d5806bba2f891bc2d0f060e0db904d..cf7505b45ea77d88e4075d3873022d587a4e8d43 100644
--- a/chrome/browser/android/shortcut_info.h
+++ b/chrome/browser/android/shortcut_info.h
@@ -30,6 +30,20 @@ struct ShortcutInfo {
SOURCE_COUNT = 6
};
+ // The shortcut type.
+ // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser
+ // GENERATED_JAVA_CLASS_NAME_OVERRIDE: ShortcutType
+ enum class Type {
+ // Dedicated APK should be created for the shortcut so that the shortcut is
+ // present in the app list and on the home screen. Shortcut opens Chrome in
+ // fullscreen.
+ WEBAPK,
+ // Shortcut is present on home screen but not in app list. Shortcut opens
+ // Chrome in fullscreen.
+ WEBAPP,
+ OTHER,
+ };
+
explicit ShortcutInfo(const GURL& shortcut_url);
ShortcutInfo(const ShortcutInfo& other);
~ShortcutInfo();
@@ -50,6 +64,7 @@ struct ShortcutInfo {
int64_t theme_color;
int64_t background_color;
bool is_icon_generated;
+ Type type;
};
#endif // CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698