Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: chrome/browser/android/banners/app_banner_infobar_delegate_android.h

Issue 2808263004: Add a new WebAPK-specific app banner shortcut source. (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/android/banners/app_banner_infobar_delegate_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/banners/app_banner_infobar_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698