| 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 // Same as kNotificationWidth. |
| 15 const int kNotificationPreferredImageSize = 360; |
| 15 const int kSettingsIconSize = 16; | 16 const int kSettingsIconSize = 16; |
| 16 | 17 |
| 17 // Limits. | 18 // Limits. |
| 18 const size_t kMaxVisibleMessageCenterNotifications = 100; | 19 const size_t kMaxVisibleMessageCenterNotifications = 100; |
| 19 const size_t kMaxVisiblePopupNotifications = 3; | 20 const size_t kMaxVisiblePopupNotifications = 3; |
| 20 | 21 |
| 21 // Within a notification /////////////////////////////////////////////////////// | 22 // Within a notification /////////////////////////////////////////////////////// |
| 22 | 23 |
| 23 // Pixel dimensions. | 24 // Pixel dimensions. |
| 24 const int kControlButtonSize = 29; | 25 const int kControlButtonSize = 29; |
| 25 const int kNotificationWidth = 360; | 26 const int kNotificationWidth = 360; |
| 26 const int kIconToTextPadding = 16; | 27 const int kIconToTextPadding = 16; |
| 27 const int kTextTopPadding = 12; | 28 const int kTextTopPadding = 12; |
| 28 | 29 |
| 29 // Text sizes. | 30 // Text sizes. |
| 30 const int kTitleFontSize = 14; | 31 const int kTitleFontSize = 14; |
| 31 const int kTitleLineHeight = 20; | 32 const int kTitleLineHeight = 20; |
| 32 const int kMessageFontSize = 12; | 33 const int kMessageFontSize = 12; |
| 33 const int kMessageLineHeight = 18; | 34 const int kMessageLineHeight = 18; |
| 34 | 35 |
| 35 // Colors. | 36 // Colors. |
| 36 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255); | 37 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255); |
| 37 const SkColor kLegacyIconBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5); | 38 const SkColor kLegacyIconBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5); |
| 38 const SkColor kRegularTextColor = SkColorSetRGB(34, 34, 34); | 39 const SkColor kRegularTextColor = SkColorSetRGB(34, 34, 34); |
| 39 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250); | 40 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250); |
| 40 | 41 |
| 41 // Limits. | 42 // Limits. |
| 42 const int kNotificationMaximumImageHeight = kNotificationWidth * 1.5; | 43 // kNotificationWidth * 1.5 |
| 44 const int kNotificationMaximumImageHeight = 540; |
| 43 const size_t kNotificationMaximumItems = 8; | 45 const size_t kNotificationMaximumItems = 8; |
| 44 | 46 |
| 45 // Timing. | 47 // Timing. |
| 46 const int kAutocloseDefaultDelaySeconds = 8; | 48 const int kAutocloseDefaultDelaySeconds = 8; |
| 47 const int kAutocloseHighPriorityDelaySeconds = 25; | 49 const int kAutocloseHighPriorityDelaySeconds = 25; |
| 48 | 50 |
| 49 // Around notifications //////////////////////////////////////////////////////// | 51 // Around notifications //////////////////////////////////////////////////////// |
| 50 | 52 |
| 51 // Pixel dimensions. | 53 // Pixel dimensions. |
| 52 const int kMarginBetweenItems = 10; | 54 const int kMarginBetweenItems = 10; |
| 53 | 55 |
| 54 // Colors. | 56 // Colors. |
| 55 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); | 57 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); |
| 56 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); | 58 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); |
| 57 | 59 |
| 58 } // namespace message_center | 60 } // namespace message_center |
| OLD | NEW |