| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_COMMON_NOTIFICATION_CONSTANTS_H_ | |
| 6 #define CONTENT_COMMON_NOTIFICATION_CONSTANTS_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 // Maximum number of actions on a Platform Notification. | |
| 13 static const size_t kPlatformNotificationMaxActions = 2; | |
| 14 | |
| 15 // The maximum reasonable notification icon size, scaled from dip units to | |
| 16 // pixels using the largest supported scaling factor. | |
| 17 static const int kPlatformNotificationMaxIconSizePx = 320; // 80 dip * 4 | |
| 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 | |
| 23 // The maximum reasonable action icon size, scaled from dip units to | |
| 24 // pixels using the largest supported scaling factor. | |
| 25 static const int kPlatformNotificationMaxActionIconSizePx = 128; // 32 dip * 4 | |
| 26 | |
| 27 } // namespace content | |
| 28 | |
| 29 #endif // CONTENT_COMMON_NOTIFICATION_CONSTANTS_H_ | |
| OLD | NEW |