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

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

Issue 102473005: Refresh for the Chrome notifications image template. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac unit test Created 7 years 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 | Annotate | Revision Log
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 "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/gfx/size.h" 10 #include "ui/gfx/size.h"
11 #include "ui/message_center/message_center_export.h" 11 #include "ui/message_center/message_center_export.h"
12 12
13 namespace message_center { 13 namespace message_center {
14 14
15 // Exported values ///////////////////////////////////////////////////////////// 15 // Exported values /////////////////////////////////////////////////////////////
16 16
17 // Square image sizes in DIPs. 17 // Square image sizes in DIPs.
18 const int kNotificationButtonIconSize = 16; 18 const int kNotificationButtonIconSize = 16;
19 const int kNotificationIconSize = 80; 19 const int kNotificationIconSize = 80;
20 const int kNotificationPreferredImageSize = 360; 20 // A border is applied to images that have a non-preferred aspect ratio.
21 const float kNotificationPreferredImageRatio = 1.5; 21 const int kNotificationImageBorderSize = 10;
22 const int kNotificationPreferredImageWidth = 360;
23 const int kNotificationPreferredImageHeight = 240;
22 const int kSettingsIconSize = 16; 24 const int kSettingsIconSize = 16;
23 25
24 // Limits. 26 // Limits.
25 const size_t kMaxVisibleMessageCenterNotifications = 100; 27 const size_t kMaxVisibleMessageCenterNotifications = 100;
26 const size_t kMaxVisiblePopupNotifications = 3; 28 const size_t kMaxVisiblePopupNotifications = 3;
27 29
28 // DIP dimension; H size of the whole card. 30 // DIP dimension; H size of the whole card.
29 const int kNotificationWidth = 360; 31 const int kNotificationWidth = 360;
30 32
31 // Colors. 33 // Colors.
(...skipping 27 matching lines...) Expand all
59 // and frame. 61 // and frame.
60 62
61 // Text sizes. 63 // Text sizes.
62 const int kTitleFontSize = 14; // For title only. 64 const int kTitleFontSize = 14; // For title only.
63 const int kTitleLineHeight = 20; // In DIPs. 65 const int kTitleLineHeight = 20; // In DIPs.
64 const int kMessageFontSize = 12; // For everything but title. 66 const int kMessageFontSize = 12; // For everything but title.
65 const int kMessageLineHeight = 18; // In DIPs. 67 const int kMessageLineHeight = 18; // In DIPs.
66 68
67 // Colors. 69 // Colors.
68 extern const SkColor kNotificationBackgroundColor; // Background of the card. 70 extern const SkColor kNotificationBackgroundColor; // Background of the card.
69 extern const SkColor kIconBackgroundColor; // Used behind icons smaller. 71 extern const SkColor kImageBackgroundColor; // Background of the image.
72 extern const SkColor kIconBackgroundColor; // Used behind icons smaller
70 // than the icon view. 73 // than the icon view.
71 extern const SkColor kRegularTextColor; // Title, message, ... 74 extern const SkColor kRegularTextColor; // Title, message, ...
72 extern const SkColor kDimTextColor; 75 extern const SkColor kDimTextColor;
73 extern const SkColor kFocusBorderColor; // The focus border. 76 extern const SkColor kFocusBorderColor; // The focus border.
74 77
75 // Limits. 78 // Limits.
76 79
77 // Given the size of an image, returns the rect the image should be displayed 80 // Given the size of an image, returns the rect the image should be displayed
78 // in, centered. 81 // in, centered.
79 gfx::Size GetImageSizeForWidth(int width, const gfx::Size& image_size); 82 gfx::Size GetImageSizeForWidth(int width, const gfx::Size& image_size);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 125
123 extern const SkColor kShadowColor; // Shadow in the tray. 126 extern const SkColor kShadowColor; // Shadow in the tray.
124 127
125 extern const SkColor kMessageCenterBackgroundColor; 128 extern const SkColor kMessageCenterBackgroundColor;
126 extern const SkColor kFooterDelimiterColor; // Separator color for the tray. 129 extern const SkColor kFooterDelimiterColor; // Separator color for the tray.
127 extern const SkColor kFooterTextColor; // Text color for tray labels. 130 extern const SkColor kFooterTextColor; // Text color for tray labels.
128 131
129 } // namespace message_center 132 } // namespace message_center
130 133
131 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ 134 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_
OLDNEW
« no previous file with comments | « ui/message_center/cocoa/notification_controller_unittest.mm ('k') | ui/message_center/message_center_style.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698