| 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 "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 explicit ShortcutInfo(const GURL& shortcut_url); | 33 explicit ShortcutInfo(const GURL& shortcut_url); |
| 34 ShortcutInfo(const ShortcutInfo& other); | 34 ShortcutInfo(const ShortcutInfo& other); |
| 35 ~ShortcutInfo(); | 35 ~ShortcutInfo(); |
| 36 | 36 |
| 37 // Updates the info based on the given |manifest|. | 37 // Updates the info based on the given |manifest|. |
| 38 void UpdateFromManifest(const content::Manifest& manifest); | 38 void UpdateFromManifest(const content::Manifest& manifest); |
| 39 | 39 |
| 40 // Updates the source of the shortcut. | 40 // Updates the source of the shortcut. |
| 41 void UpdateSource(const Source source); | 41 void UpdateSource(const Source source); |
| 42 | 42 |
| 43 GURL manifest_url; |
| 43 GURL url; | 44 GURL url; |
| 44 base::string16 user_title; | 45 base::string16 user_title; |
| 45 base::string16 name; | 46 base::string16 name; |
| 46 base::string16 short_name; | 47 base::string16 short_name; |
| 47 blink::WebDisplayMode display; | 48 blink::WebDisplayMode display; |
| 48 blink::WebScreenOrientationLockType orientation; | 49 blink::WebScreenOrientationLockType orientation; |
| 49 Source source; | 50 Source source; |
| 50 int64_t theme_color; | 51 int64_t theme_color; |
| 51 int64_t background_color; | 52 int64_t background_color; |
| 52 bool is_icon_generated; | 53 GURL icon_url; |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_ | 56 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_ |
| OLD | NEW |