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_ |