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_STYLE_H_ | 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ |
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ | 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 SkColorSetA(SK_ColorWHITE, 0.9 * 0xff); | 101 SkColorSetA(SK_ColorWHITE, 0.9 * 0xff); |
102 | 102 |
103 // Limits. | 103 // Limits. |
104 | 104 |
105 // Given the size of an image, returns the size of the properly scaled-up image | 105 // Given the size of an image, returns the size of the properly scaled-up image |
106 // which fits into |container_size|. | 106 // which fits into |container_size|. |
107 MESSAGE_CENTER_EXPORT gfx::Size GetImageSizeForContainerSize( | 107 MESSAGE_CENTER_EXPORT gfx::Size GetImageSizeForContainerSize( |
108 const gfx::Size& container_size, | 108 const gfx::Size& container_size, |
109 const gfx::Size& image_size); | 109 const gfx::Size& image_size); |
110 | 110 |
111 const size_t kNotificationMaximumItems = 5; // For list notifications. | 111 // For list notifications. |
| 112 // Not used when --enabled-new-style-notification is set. |
| 113 const size_t kNotificationMaximumItems = 5; |
112 | 114 |
113 // Timing. | 115 // Timing. |
114 const int kAutocloseDefaultDelaySeconds = 8; | 116 const int kAutocloseDefaultDelaySeconds = 8; |
115 const int kAutocloseHighPriorityDelaySeconds = 25; | 117 const int kAutocloseHighPriorityDelaySeconds = 25; |
116 // Web notifications use a larger timeout for now, which improves re-engagement. | 118 // Web notifications use a larger timeout for now, which improves re-engagement. |
117 // TODO(johnme): Use Finch to experiment with different values, then consider | 119 // TODO(johnme): Use Finch to experiment with different values, then consider |
118 // replacing kAutocloseDefaultDelaySeconds with this (https://crbug.com/530697) | 120 // replacing kAutocloseDefaultDelaySeconds with this (https://crbug.com/530697) |
119 const int kAutocloseWebPageDelaySeconds = 20; | 121 const int kAutocloseWebPageDelaySeconds = 20; |
120 | 122 |
121 // Buttons. | 123 // Buttons. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 167 |
166 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xee, 0xee, 0xee); | 168 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xee, 0xee, 0xee); |
167 // Separator color for the tray. | 169 // Separator color for the tray. |
168 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc); | 170 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc); |
169 // Text color for tray labels. | 171 // Text color for tray labels. |
170 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b); | 172 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b); |
171 | 173 |
172 } // namespace message_center | 174 } // namespace message_center |
173 | 175 |
174 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ | 176 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ |
OLD | NEW |