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 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_ | 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_ |
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_ | 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
10 #include "ui/message_center/message_center_export.h" | 10 #include "ui/message_center/message_center_export.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 // Within a notification /////////////////////////////////////////////////////// | 22 // Within a notification /////////////////////////////////////////////////////// |
23 | 23 |
24 // Pixel dimensions (H = horizontal, V = vertical). | 24 // Pixel dimensions (H = horizontal, V = vertical). |
25 extern const int kControlButtonSize; // Square size of close & expand buttons. | 25 extern const int kControlButtonSize; // Square size of close & expand buttons. |
26 extern const int kNotificationWidth; // H size of the whole card. | 26 extern const int kNotificationWidth; // H size of the whole card. |
27 extern const int kIconToTextPadding; // H space between icon & title/message. | 27 extern const int kIconToTextPadding; // H space between icon & title/message. |
28 extern const int kTextTopPadding; // V space between text elements. | 28 extern const int kTextTopPadding; // V space between text elements. |
29 | 29 |
30 // Text sizes. | 30 // Text sizes. |
31 extern const int kTitleFontSize; // For title only. | 31 extern const int kTitleFontSize; // For title only. |
32 extern const int kMessageFontSize; // For everything but title. | 32 extern const int kMessageFontSize; // For everything but title. |
| 33 extern const int kMessageLineHeight; // In pixels. |
33 | 34 |
34 // Colors. | 35 // Colors. |
35 extern const SkColor kNotificationBackgroundColor; // Background of the card. | 36 extern const SkColor kNotificationBackgroundColor; // Background of the card. |
36 extern const SkColor kLegacyIconBackgroundColor; // Used behind icons smaller. | 37 extern const SkColor kLegacyIconBackgroundColor; // Used behind icons smaller. |
37 // than the icon view. | 38 // than the icon view. |
38 extern const SkColor kRegularTextColor; // Title, message, ... | 39 extern const SkColor kRegularTextColor; // Title, message, ... |
39 extern const SkColor kFocusBorderColor; // The focus border. | 40 extern const SkColor kFocusBorderColor; // The focus border. |
40 | 41 |
41 // Limits. | 42 // Limits. |
42 extern const int kNotificationMaximumImageHeight; // For image notifications. | 43 extern const int kNotificationMaximumImageHeight; // For image notifications. |
43 extern const size_t kNotificationMaximumItems; // For list notifications. | 44 extern const size_t kNotificationMaximumItems; // For list notifications. |
44 | 45 |
45 // Timing. | 46 // Timing. |
46 extern const int kAutocloseDefaultDelaySeconds; | 47 extern const int kAutocloseDefaultDelaySeconds; |
47 extern const int kAutocloseHighPriorityDelaySeconds; | 48 extern const int kAutocloseHighPriorityDelaySeconds; |
48 | 49 |
49 // Around notifications //////////////////////////////////////////////////////// | 50 // Around notifications //////////////////////////////////////////////////////// |
50 | 51 |
51 // Pixel dimensions (H = horizontal, V = vertical). | 52 // Pixel dimensions (H = horizontal, V = vertical). |
52 extern const int kMarginBetweenItems; // H & V space around & between | 53 extern const int kMarginBetweenItems; // H & V space around & between |
53 // notifications. | 54 // notifications. |
54 | 55 |
55 // Colors. | 56 // Colors. |
56 extern const SkColor kBackgroundLightColor; // Behind notifications, gradient | 57 extern const SkColor kBackgroundLightColor; // Behind notifications, gradient |
57 extern const SkColor kBackgroundDarkColor; // from light to dark. | 58 extern const SkColor kBackgroundDarkColor; // from light to dark. |
58 | 59 |
59 } // namespace message_center | 60 } // namespace message_center |
60 | 61 |
61 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_ | 62 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_ |
OLD | NEW |