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 | 40 |
40 // Limits. | 41 // Limits. |
41 extern const int kNotificationMaximumImageHeight; // For image notifications. | 42 extern const int kNotificationMaximumImageHeight; // For image notifications. |
42 extern const size_t kNotificationMaximumItems; // For list notifications. | 43 extern const size_t kNotificationMaximumItems; // For list notifications. |
43 | 44 |
44 // Timing. | 45 // Timing. |
45 extern const int kAutocloseDefaultDelaySeconds; | 46 extern const int kAutocloseDefaultDelaySeconds; |
46 extern const int kAutocloseHighPriorityDelaySeconds; | 47 extern const int kAutocloseHighPriorityDelaySeconds; |
47 | 48 |
48 // Around notifications //////////////////////////////////////////////////////// | 49 // Around notifications //////////////////////////////////////////////////////// |
49 | 50 |
50 // Pixel dimensions (H = horizontal, V = vertical). | 51 // Pixel dimensions (H = horizontal, V = vertical). |
51 extern const int kMarginBetweenItems; // H & V space around & between | 52 extern const int kMarginBetweenItems; // H & V space around & between |
52 // notifications. | 53 // notifications. |
53 | 54 |
54 // Colors. | 55 // Colors. |
55 extern const SkColor kBackgroundLightColor; // Behind notifications, gradient | 56 extern const SkColor kBackgroundLightColor; // Behind notifications, gradient |
56 extern const SkColor kBackgroundDarkColor; // from light to dark. | 57 extern const SkColor kBackgroundDarkColor; // from light to dark. |
57 | 58 |
58 } // namespace message_center | 59 } // namespace message_center |
59 | 60 |
60 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_ | 61 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_ |
OLD | NEW |