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

Unified Diff: chrome/browser/android/shortcut_helper.h

Issue 2664983004: Allow ShortcutHelper to retrieve badge icon dimensions. (Closed)
Patch Set: Addressing comments Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/shortcut_helper.h
diff --git a/chrome/browser/android/shortcut_helper.h b/chrome/browser/android/shortcut_helper.h
index 1c69e53edf194b1d8c92f901ecc7d9d981bdde72..823ed082a263a9b6af5d578c58c72c11e0782eb0 100644
--- a/chrome/browser/android/shortcut_helper.h
+++ b/chrome/browser/android/shortcut_helper.h
@@ -63,10 +63,10 @@ class ShortcutHelper {
// when user tries to queue a new install for the same WebAPK.
static void ShowWebApkInstallInProgressToast();
- // Returns the ideal size for an icon representing a web app.
+ // Returns the ideal size for an icon representing a web app or a WebAPK.
static int GetIdealHomescreenIconSizeInPx();
- // Returns the minimum size for an icon representing a web app.
+ // Returns the minimum size for an icon representing a web app or a WebAPK.
static int GetMinimumHomescreenIconSizeInPx();
// Returns the ideal size for an image displayed on a web app's splash
@@ -77,6 +77,9 @@ class ShortcutHelper {
// screen.
static int GetMinimumSplashImageSizeInPx();
+ // Returns the ideal size for a badge icon of a WebAPK.
+ static int GetIdealBadgeIconSizeInPx();
+
// Fetches the splash screen image and stores it inside the WebappDataStorage
// of the webapp. The WebappDataStorage object *must* have been previously
// created by |AddShortcutInBackgroundWithSkBitmap|; this method should be
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java ('k') | chrome/browser/android/shortcut_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698