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

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

Issue 2685363002: Update AppBannerManager & AppBannerManagerAndroid to request badge icon. (Closed)
Patch Set: Created 3 years, 10 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 base::Closure FetchWebappSplashScreenImageCallback( 61 base::Closure FetchWebappSplashScreenImageCallback(
62 const std::string& webapp_id) override; 62 const std::string& webapp_id) override;
63 63
64 // Registers native methods. 64 // Registers native methods.
65 static bool Register(JNIEnv* env); 65 static bool Register(JNIEnv* env);
66 66
67 protected: 67 protected:
68 // AppBannerManager overrides. 68 // AppBannerManager overrides.
69 std::string GetAppIdentifier() override; 69 std::string GetAppIdentifier() override;
70 std::string GetBannerType() override; 70 std::string GetBannerType() override;
71 int GetIdealIconSizeInPx() override; 71 int GetIdealPrimaryIconSizeInPx() override;
72 int GetMinimumIconSizeInPx() override; 72 int GetMinimumPrimaryIconSizeInPx() override;
73 int GetIdealBadgeIconSizeInPx() override;
73 bool IsWebAppInstalled(content::BrowserContext* browser_context, 74 bool IsWebAppInstalled(content::BrowserContext* browser_context,
74 const GURL& start_url, 75 const GURL& start_url,
75 const GURL& manifest_url) override; 76 const GURL& manifest_url) override;
76 void PerformInstallableCheck() override; 77 void PerformInstallableCheck() override;
77 void OnAppIconFetched(const SkBitmap& bitmap) override; 78 void OnAppIconFetched(const SkBitmap& bitmap) override;
78 void ResetCurrentPageData() override; 79 void ResetCurrentPageData() override;
79 void ShowBanner() override; 80 void ShowBanner() override;
80 81
81 private: 82 private:
82 friend class content::WebContentsUserData<AppBannerManagerAndroid>; 83 friend class content::WebContentsUserData<AppBannerManagerAndroid>;
(...skipping 26 matching lines...) Expand all
109 110
110 // App package name for a native app banner. 111 // App package name for a native app banner.
111 std::string native_app_package_; 112 std::string native_app_package_;
112 113
113 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerAndroid); 114 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerAndroid);
114 }; 115 };
115 116
116 } // namespace banners 117 } // namespace banners
117 118
118 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ 119 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698