| 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_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ |
| 6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 static bool Register(JNIEnv* env); | 60 static bool Register(JNIEnv* env); |
| 61 | 61 |
| 62 protected: | 62 protected: |
| 63 // Return the ideal badge icon size. | 63 // Return the ideal badge icon size. |
| 64 int GetIdealBadgeIconSizeInPx(); | 64 int GetIdealBadgeIconSizeInPx(); |
| 65 | 65 |
| 66 // AppBannerManager overrides. | 66 // AppBannerManager overrides. |
| 67 std::string GetAppIdentifier() override; | 67 std::string GetAppIdentifier() override; |
| 68 std::string GetBannerType() override; | 68 std::string GetBannerType() override; |
| 69 int GetIdealPrimaryIconSizeInPx() override; | 69 int GetIdealPrimaryIconSizeInPx() override; |
| 70 int GetMinimumPrimaryIconSizeInPx() override; | |
| 71 bool IsWebAppInstalled(content::BrowserContext* browser_context, | 70 bool IsWebAppInstalled(content::BrowserContext* browser_context, |
| 72 const GURL& start_url, | 71 const GURL& start_url, |
| 73 const GURL& manifest_url) override; | 72 const GURL& manifest_url) override; |
| 74 InstallableParams ParamsToPerformInstallableCheck() override; | 73 InstallableParams ParamsToPerformInstallableCheck() override; |
| 75 void PerformInstallableCheck() override; | 74 void PerformInstallableCheck() override; |
| 76 void OnDidPerformInstallableCheck(const InstallableData& result) override; | 75 void OnDidPerformInstallableCheck(const InstallableData& result) override; |
| 77 void OnAppIconFetched(const SkBitmap& bitmap) override; | 76 void OnAppIconFetched(const SkBitmap& bitmap) override; |
| 78 void ResetCurrentPageData() override; | 77 void ResetCurrentPageData() override; |
| 79 void ShowBanner() override; | 78 void ShowBanner() override; |
| 80 | 79 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 117 |
| 119 // Whether WebAPKs can be installed. | 118 // Whether WebAPKs can be installed. |
| 120 bool can_install_webapk_; | 119 bool can_install_webapk_; |
| 121 | 120 |
| 122 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerAndroid); | 121 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerAndroid); |
| 123 }; | 122 }; |
| 124 | 123 |
| 125 } // namespace banners | 124 } // namespace banners |
| 126 | 125 |
| 127 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ | 126 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ |
| OLD | NEW |