Chromium Code Reviews| Index: chrome/browser/android/banners/app_banner_infobar_delegate_android.h |
| diff --git a/chrome/browser/android/banners/app_banner_infobar_delegate_android.h b/chrome/browser/android/banners/app_banner_infobar_delegate_android.h |
| index c78aa8def8af41f30db46695348dfc8db65437ab..232dea3a75a94935d825c2633e2f19fb00f5bb6d 100644 |
| --- a/chrome/browser/android/banners/app_banner_infobar_delegate_android.h |
| +++ b/chrome/browser/android/banners/app_banner_infobar_delegate_android.h |
| @@ -24,6 +24,7 @@ class InfoBarManager; |
| } |
| class AppBannerInfoBar; |
| +struct ShortcutInfo; |
| namespace banners { |
| @@ -35,7 +36,7 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate { |
| base::WeakPtr<AppBannerManager> weak_manager, |
| const base::string16& app_title, |
| const GURL& manifest_url, |
| - const content::Manifest& manifest, |
| + std::unique_ptr<ShortcutInfo> info, |
| const GURL& icon_url, |
| std::unique_ptr<SkBitmap> icon, |
| int event_request_id, |
| @@ -67,6 +68,12 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate { |
| const base::android::JavaParamRef<jobject>& obj, |
| jboolean success); |
| + // Called when user clicks the "Add To Homescreen" from the app menu to |
| + // install a WebAPK. This function sets the text on infobar to "Adding" and |
| + // disables the button to avoid usr interaction. It also starts the WebAPK's |
|
gone
2016/08/31 21:07:39
user interaction
Xi Han
2016/09/01 18:44:14
Done.
|
| + // installation process automatically. |
| + void InstallWebApk(content::WebContents* web_contents); |
| + |
| private: |
| void CreateJavaDelegate(); |
| bool AcceptNativeApp(content::WebContents* web_contents); |
| @@ -92,7 +99,7 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate { |
| base::string16 app_title_; |
| GURL manifest_url_; |
| - content::Manifest manifest_; |
| + std::unique_ptr<ShortcutInfo> info_; |
|
dominickn
2016/09/01 05:22:00
Nit: shortcut_info_.
Xi Han
2016/09/01 18:44:14
Done.
|
| base::android::ScopedJavaGlobalRef<jobject> native_app_data_; |