| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_ |
| 6 #define CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_ | 6 #define CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 SOURCE_ADD_TO_HOMESCREEN_STANDALONE = 7, | 41 SOURCE_ADD_TO_HOMESCREEN_STANDALONE = 7, |
| 42 | 42 |
| 43 // Used for bookmark-type shortcuts that launch the tabbed browser. | 43 // Used for bookmark-type shortcuts that launch the tabbed browser. |
| 44 SOURCE_ADD_TO_HOMESCREEN_SHORTCUT = 8, | 44 SOURCE_ADD_TO_HOMESCREEN_SHORTCUT = 8, |
| 45 | 45 |
| 46 // Used for WebAPKs launched via an external intent. | 46 // Used for WebAPKs launched via an external intent. |
| 47 SOURCE_EXTERNAL_INTENT = 9, | 47 SOURCE_EXTERNAL_INTENT = 9, |
| 48 | 48 |
| 49 // Used for WebAPK PWAs added via the banner. | 49 // Used for WebAPK PWAs added via the banner. |
| 50 SOURCE_APP_BANNER_WEBAPK = 10, | 50 SOURCE_APP_BANNER_WEBAPK = 10, |
| 51 SOURCE_COUNT = 11 | 51 |
| 52 // Used for WebAPK PWAs whose install source info was lost. |
| 53 SOURCE_WEBAPK_UNKNOWN = 11, |
| 54 |
| 55 SOURCE_COUNT = 12 |
| 52 }; | 56 }; |
| 53 | 57 |
| 54 explicit ShortcutInfo(const GURL& shortcut_url); | 58 explicit ShortcutInfo(const GURL& shortcut_url); |
| 55 ShortcutInfo(const ShortcutInfo& other); | 59 ShortcutInfo(const ShortcutInfo& other); |
| 56 ~ShortcutInfo(); | 60 ~ShortcutInfo(); |
| 57 | 61 |
| 58 // Updates the info based on the given |manifest|. | 62 // Updates the info based on the given |manifest|. |
| 59 void UpdateFromManifest(const content::Manifest& manifest); | 63 void UpdateFromManifest(const content::Manifest& manifest); |
| 60 | 64 |
| 61 // Updates the source of the shortcut. | 65 // Updates the source of the shortcut. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 74 int64_t background_color; | 78 int64_t background_color; |
| 75 int ideal_splash_image_size_in_px; | 79 int ideal_splash_image_size_in_px; |
| 76 int minimum_splash_image_size_in_px; | 80 int minimum_splash_image_size_in_px; |
| 77 GURL splash_image_url; | 81 GURL splash_image_url; |
| 78 GURL best_primary_icon_url; | 82 GURL best_primary_icon_url; |
| 79 GURL best_badge_icon_url; | 83 GURL best_badge_icon_url; |
| 80 std::vector<std::string> icon_urls; | 84 std::vector<std::string> icon_urls; |
| 81 }; | 85 }; |
| 82 | 86 |
| 83 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_ | 87 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_ |
| OLD | NEW |