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

Side by Side 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 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 CONTENT_COMMON_NOTIFICATION_CONSTANTS_H_ 5 #ifndef CONTENT_COMMON_NOTIFICATION_CONSTANTS_H_
6 #define CONTENT_COMMON_NOTIFICATION_CONSTANTS_H_ 6 #define CONTENT_COMMON_NOTIFICATION_CONSTANTS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 namespace content { 10 namespace content {
11 11
12 // Maximum number of actions on a Platform Notification. 12 // Maximum number of actions on a Platform Notification.
13 static const size_t kPlatformNotificationMaxActions = 2; 13 static const size_t kPlatformNotificationMaxActions = 2;
14 14
15 // The maximum reasonable notification icon size, scaled from dip units to 15 // The maximum reasonable notification icon size, scaled from dip units to
16 // pixels using the largest supported scaling factor. 16 // pixels using the largest supported scaling factor.
17 static const int kPlatformNotificationMaxIconSizePx = 320; // 80 dip * 4 17 static const int kPlatformNotificationMaxIconSizePx = 320; // 80 dip * 4
18 18
19 // The maximum reasonable badge size, scaled from dip units to pixels using the
20 // largest supported scaling factor.
21 static const int kPlatformNotificationMaxBadgeSizePx = 96; // 24 dip * 4
22
19 // The maximum reasonable action icon size, scaled from dip units to 23 // The maximum reasonable action icon size, scaled from dip units to
20 // pixels using the largest supported scaling factor. 24 // pixels using the largest supported scaling factor.
21 static const int kPlatformNotificationMaxActionIconSizePx = 128; // 32 dip * 4 25 static const int kPlatformNotificationMaxActionIconSizePx = 128; // 32 dip * 4
22 26
23 } // namespace content 27 } // namespace content
24 28
25 #endif // CONTENT_COMMON_NOTIFICATION_CONSTANTS_H_ 29 #endif // CONTENT_COMMON_NOTIFICATION_CONSTANTS_H_
OLDNEW
« 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