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

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: Merge branch 'create_webapk_requirements_enum_class' into create_webapk_requirements2 Created 4 years, 5 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
« no previous file with comments | « chrome/browser/android/shortcut_helper.cc ('k') | chrome/browser/android/shortcut_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/shortcut_info.h
diff --git a/chrome/browser/android/shortcut_info.h b/chrome/browser/android/shortcut_info.h
index 0766c546b3b10de86031c86d44186e188fcef948..4c0ea2281b27245a89e68577f27704eafe46a486 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();
@@ -51,6 +65,7 @@ struct ShortcutInfo {
int64_t theme_color;
int64_t background_color;
GURL icon_url;
+ Type type;
};
#endif // CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_
« no previous file with comments | « chrome/browser/android/shortcut_helper.cc ('k') | chrome/browser/android/shortcut_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698