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

Unified Diff: content/common/notification_constants.h

Issue 1750083004: Add badge to web notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/common/notification_constants.h
diff --git a/content/common/notification_constants.h b/content/common/notification_constants.h
index 5c4a1eba671ae4f5822d15c283148c99d8968f91..559cff1ac3958b44db14cd43464b1924cd3f57b9 100644
--- a/content/common/notification_constants.h
+++ b/content/common/notification_constants.h
@@ -16,6 +16,10 @@ static const size_t kPlatformNotificationMaxActions = 2;
// pixels using the largest supported scaling factor.
static const int kPlatformNotificationMaxIconSizePx = 320; // 80 dip * 4
+// The maximum reasonable small notification icon size, scaled from dip units to
+// pixels using the largest supported scaling factor.
+static const int kPlatformNotificationMaxSmallIconSizePx = 96; // 24 dip * 4
+
// The maximum reasonable action icon size, scaled from dip units to
// pixels using the largest supported scaling factor.
static const int kPlatformNotificationMaxActionIconSizePx = 128; // 32 dip * 4

Powered by Google App Engine
This is Rietveld 408576698