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

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

Issue 2724723002: [WebAPKs]: Reduce the parameters of ShortcutHelper::AddToLauncherWithSkBitmap() (Closed)
Patch Set: Merge branch 'master' into refactor_shortcut_helper2 Created 3 years, 9 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
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_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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 JNIEnv* env, 49 JNIEnv* env,
50 const base::android::JavaParamRef<jobject>& obj, 50 const base::android::JavaParamRef<jobject>& obj,
51 const base::android::JavaParamRef<jobject>& japp_data, 51 const base::android::JavaParamRef<jobject>& japp_data,
52 const base::android::JavaParamRef<jstring>& japp_title, 52 const base::android::JavaParamRef<jstring>& japp_title,
53 const base::android::JavaParamRef<jstring>& japp_package, 53 const base::android::JavaParamRef<jstring>& japp_package,
54 const base::android::JavaParamRef<jstring>& jicon_url); 54 const base::android::JavaParamRef<jstring>& jicon_url);
55 55
56 // AppBannerManager overrides. 56 // AppBannerManager overrides.
57 void RequestAppBanner(const GURL& validated_url, bool is_debug_mode) override; 57 void RequestAppBanner(const GURL& validated_url, bool is_debug_mode) override;
58 58
59 // Returns a callback which fetches the splash screen image and stores it in
60 // a WebappDataStorage.
61 base::Closure FetchWebappSplashScreenImageCallback(
62 const std::string& webapp_id) override;
63
64 // Registers native methods. 59 // Registers native methods.
65 static bool Register(JNIEnv* env); 60 static bool Register(JNIEnv* env);
66 61
67 protected: 62 protected:
68 // Return the ideal badge icon size. 63 // Return the ideal badge icon size.
69 int GetIdealBadgeIconSizeInPx(); 64 int GetIdealBadgeIconSizeInPx();
70 65
71 // AppBannerManager overrides. 66 // AppBannerManager overrides.
72 std::string GetAppIdentifier() override; 67 std::string GetAppIdentifier() override;
73 std::string GetBannerType() override; 68 std::string GetBannerType() override;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 118
124 // Whether WebAPKs can be installed. 119 // Whether WebAPKs can be installed.
125 bool can_install_webapk_; 120 bool can_install_webapk_;
126 121
127 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerAndroid); 122 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerAndroid);
128 }; 123 };
129 124
130 } // namespace banners 125 } // namespace banners
131 126
132 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ 127 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698