OLD | NEW |
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_ |
OLD | NEW |