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

Side by Side Diff: chrome/browser/android/shortcut_info.h

Issue 2790873002: Add external intents for WebAPKs to Launch.HomescreenSource. (Closed)
Patch Set: D'oh Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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 14 matching lines...) Expand all
25 enum Source { 25 enum Source {
26 SOURCE_UNKNOWN = 0, 26 SOURCE_UNKNOWN = 0,
27 SOURCE_ADD_TO_HOMESCREEN_DEPRECATED = 1, 27 SOURCE_ADD_TO_HOMESCREEN_DEPRECATED = 1,
28 SOURCE_APP_BANNER = 2, 28 SOURCE_APP_BANNER = 2,
29 SOURCE_BOOKMARK_NAVIGATOR_WIDGET = 3, 29 SOURCE_BOOKMARK_NAVIGATOR_WIDGET = 3,
30 SOURCE_BOOKMARK_SHORTCUT_WIDGET = 4, 30 SOURCE_BOOKMARK_SHORTCUT_WIDGET = 4,
31 SOURCE_NOTIFICATION = 5, 31 SOURCE_NOTIFICATION = 5,
32 SOURCE_ADD_TO_HOMESCREEN_PWA = 6, 32 SOURCE_ADD_TO_HOMESCREEN_PWA = 6,
33 SOURCE_ADD_TO_HOMESCREEN_STANDALONE = 7, 33 SOURCE_ADD_TO_HOMESCREEN_STANDALONE = 7,
34 SOURCE_ADD_TO_HOMESCREEN_SHORTCUT = 8, 34 SOURCE_ADD_TO_HOMESCREEN_SHORTCUT = 8,
35 SOURCE_COUNT = 9 35 SOURCE_EXTERNAL_INTENT = 9,
36 SOURCE_COUNT = 10
36 }; 37 };
37 38
38 explicit ShortcutInfo(const GURL& shortcut_url); 39 explicit ShortcutInfo(const GURL& shortcut_url);
39 ShortcutInfo(const ShortcutInfo& other); 40 ShortcutInfo(const ShortcutInfo& other);
40 ~ShortcutInfo(); 41 ~ShortcutInfo();
41 42
42 // Updates the info based on the given |manifest|. 43 // Updates the info based on the given |manifest|.
43 void UpdateFromManifest(const content::Manifest& manifest); 44 void UpdateFromManifest(const content::Manifest& manifest);
44 45
45 // Updates the source of the shortcut. 46 // Updates the source of the shortcut.
(...skipping 12 matching lines...) Expand all
58 int64_t background_color; 59 int64_t background_color;
59 int ideal_splash_image_size_in_px; 60 int ideal_splash_image_size_in_px;
60 int minimum_splash_image_size_in_px; 61 int minimum_splash_image_size_in_px;
61 GURL splash_image_url; 62 GURL splash_image_url;
62 GURL best_primary_icon_url; 63 GURL best_primary_icon_url;
63 GURL best_badge_icon_url; 64 GURL best_badge_icon_url;
64 std::vector<std::string> icon_urls; 65 std::vector<std::string> icon_urls;
65 }; 66 };
66 67
67 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_ 68 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698