| 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_INFOBAR_DELEGATE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_ |
| 6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 public: | 37 public: |
| 38 // Creates an infobar and delegate for promoting the installation of a web | 38 // Creates an infobar and delegate for promoting the installation of a web |
| 39 // app, and adds the infobar to the InfoBarManager for |web_contents|. | 39 // app, and adds the infobar to the InfoBarManager for |web_contents|. |
| 40 static bool Create(content::WebContents* web_contents, | 40 static bool Create(content::WebContents* web_contents, |
| 41 base::WeakPtr<AppBannerManager> weak_manager, | 41 base::WeakPtr<AppBannerManager> weak_manager, |
| 42 const base::string16& app_title, | 42 const base::string16& app_title, |
| 43 std::unique_ptr<ShortcutInfo> info, | 43 std::unique_ptr<ShortcutInfo> info, |
| 44 const SkBitmap& primary_icon, | 44 const SkBitmap& primary_icon, |
| 45 const SkBitmap& badge_icon, | 45 const SkBitmap& badge_icon, |
| 46 int event_request_id, | 46 int event_request_id, |
| 47 bool is_webapk, |
| 47 webapk::InstallSource webapk_install_source); | 48 webapk::InstallSource webapk_install_source); |
| 48 | 49 |
| 49 // Creates an infobar and delegate for promoting the installation of an | 50 // Creates an infobar and delegate for promoting the installation of an |
| 50 // Android app, and adds the infobar to the InfoBarManager for |web_contents|. | 51 // Android app, and adds the infobar to the InfoBarManager for |web_contents|. |
| 51 static bool Create( | 52 static bool Create( |
| 52 content::WebContents* web_contents, | 53 content::WebContents* web_contents, |
| 53 const base::string16& app_title, | 54 const base::string16& app_title, |
| 54 const base::android::ScopedJavaGlobalRef<jobject>& native_app_data, | 55 const base::android::ScopedJavaGlobalRef<jobject>& native_app_data, |
| 55 const SkBitmap& icon, | 56 const SkBitmap& icon, |
| 56 const std::string& native_app_package, | 57 const std::string& native_app_package, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 176 |
| 176 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarDelegateAndroid); | 177 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarDelegateAndroid); |
| 177 }; | 178 }; |
| 178 | 179 |
| 179 // Register native methods. | 180 // Register native methods. |
| 180 bool RegisterAppBannerInfoBarDelegateAndroid(JNIEnv* env); | 181 bool RegisterAppBannerInfoBarDelegateAndroid(JNIEnv* env); |
| 181 | 182 |
| 182 } // namespace banners | 183 } // namespace banners |
| 183 | 184 |
| 184 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_ | 185 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_ |
| OLD | NEW |