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

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: Fix test. Created 4 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 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..2573a6eb8f8c76c6947609741d11e4b322bad515 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 badge size, scaled from dip units to pixels using the
+// largest supported scaling factor.
+static const int kPlatformNotificationMaxBadgeSizePx = 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
« no previous file with comments | « content/child/notifications/pending_notifications_tracker_unittest.cc ('k') | content/common/platform_notification_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698