Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: ui/message_center/message_center_style.h

Issue 2941043004: Show number of hidden items in new-style list notification. (Closed)
Patch Set: Resolve review comments. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/message_center/views/notification_view_md.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/message_center/views/notification_view_md.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698