OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "ui/message_center/message_center_constants.h" | 5 #include "ui/message_center/message_center_constants.h" |
6 | 6 |
7 namespace message_center { | 7 namespace message_center { |
8 | 8 |
9 // Exported values ///////////////////////////////////////////////////////////// | 9 // Exported values ///////////////////////////////////////////////////////////// |
10 | 10 |
11 // Square image sizes in pixels. | 11 // Square image sizes in pixels. |
12 const int kNotificationButtonIconSize = 16; | 12 const int kNotificationButtonIconSize = 16; |
13 const int kNotificationIconSize = 80; | 13 const int kNotificationIconSize = 80; |
14 const int kNotificationPreferredImageSize = kNotificationWidth; | 14 const int kNotificationPreferredImageSize = kNotificationWidth; |
15 const int kSettingsIconSize = 16; | 15 const int kSettingsIconSize = 16; |
16 | 16 |
| 17 // Limits. |
| 18 const size_t kMaxVisibleMessageCenterNotifications = 100; |
| 19 const size_t kMaxVisiblePopupNotifications = 3; |
| 20 |
17 // Within a notification /////////////////////////////////////////////////////// | 21 // Within a notification /////////////////////////////////////////////////////// |
18 | 22 |
19 // Pixel dimensions. | 23 // Pixel dimensions. |
20 const int kControlButtonSize = 29; | 24 const int kControlButtonSize = 29; |
21 const int kNotificationWidth = 360; | 25 const int kNotificationWidth = 360; |
22 const int kIconToTextPadding = 16; | 26 const int kIconToTextPadding = 16; |
23 const int kTextTopPadding = 12; | 27 const int kTextTopPadding = 12; |
24 | 28 |
25 // Text sizes. | 29 // Text sizes. |
26 const int kTitleFontSize = 14; | 30 const int kTitleFontSize = 14; |
(...skipping 16 matching lines...) Expand all Loading... |
43 // Around notifications //////////////////////////////////////////////////////// | 47 // Around notifications //////////////////////////////////////////////////////// |
44 | 48 |
45 // Pixel dimensions. | 49 // Pixel dimensions. |
46 const int kMarginBetweenItems = 10; | 50 const int kMarginBetweenItems = 10; |
47 | 51 |
48 // Colors. | 52 // Colors. |
49 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); | 53 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); |
50 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); | 54 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); |
51 | 55 |
52 } // namespace message_center | 56 } // namespace message_center |
OLD | NEW |