Chromium Code Reviews| Index: chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h |
| diff --git a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h |
| index 20de87adca0e94c373a626207b7e892e97e929f8..566afe54cc8abaed4ca5809377f7d0c9add4fcd6 100644 |
| --- a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h |
| +++ b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h |
| @@ -59,10 +59,11 @@ class AddToHomescreenDataFetcher |
| // Called when all the data needed to create a shortcut is available. |
| virtual void OnDataAvailable(const ShortcutInfo& info, |
| - const SkBitmap& icon) = 0; |
| + const SkBitmap& icon, |
|
dominickn
2017/02/02 19:16:50
primary_icon?
badge_icon?
F
2017/02/02 21:05:51
Done.
|
| + const SkBitmap& badge) = 0; |
| - protected: |
| - virtual ~Observer() {} |
| + protected: |
| + virtual ~Observer() {} |
| }; |
| // Initialize the fetcher by requesting the information about the page from |
| @@ -73,6 +74,8 @@ class AddToHomescreenDataFetcher |
| int minimum_icon_size_in_px, |
| int ideal_splash_image_size_in_px, |
| int minimum_splash_image_size_in_px, |
| + int ideal_badge_size_in_px, |
| + int minimum_badge_size_in_px, |
| bool check_webapk_compatible, |
| Observer* observer); |
| @@ -125,6 +128,7 @@ class AddToHomescreenDataFetcher |
| // The icon must only be set on the UI thread for thread safety. |
| SkBitmap shortcut_icon_; |
|
dominickn
2017/02/02 19:16:50
primary_icon_?
badge_icon?
F
2017/02/02 21:05:51
Done.
dominickn
2017/02/02 21:17:11
I don't think we need the shortcut_ prefix here -
F
2017/02/02 22:30:42
Done.
|
| + SkBitmap shortcut_badge_; |
| ShortcutInfo shortcut_info_; |
| GURL splash_screen_url_; |
| @@ -135,6 +139,8 @@ class AddToHomescreenDataFetcher |
| const int minimum_icon_size_in_px_; |
| const int ideal_splash_image_size_in_px_; |
| const int minimum_splash_image_size_in_px_; |
| + const int ideal_badge_size_in_px_; |
|
dominickn
2017/02/02 19:16:50
These appear to always be set to the same value. C
F
2017/02/02 21:05:51
My understanding is that ShortcutHelper wraps the
dominickn
2017/02/02 21:17:11
If we're going to provide the same value for now,
F
2017/02/02 22:30:42
Done.
|
| + const int minimum_badge_size_in_px_; |
| // Indicates whether to check WebAPK compatibility. |
| bool check_webapk_compatibility_; |