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

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

Issue 18003003: Message center re-organized (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments applied Created 7 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 | 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 MESSAGE_CENTER_EXPORT extern const int kNotificationButtonIconSize; 18 MESSAGE_CENTER_EXPORT extern const int kNotificationButtonIconSize;
19 MESSAGE_CENTER_EXPORT extern const int kNotificationIconSize; 19 MESSAGE_CENTER_EXPORT extern const int kNotificationIconSize;
20 MESSAGE_CENTER_EXPORT extern const int kNotificationPreferredImageSize; 20 MESSAGE_CENTER_EXPORT extern const int kNotificationPreferredImageSize;
21 MESSAGE_CENTER_EXPORT extern const float kNotificationPreferredImageRatio; 21 MESSAGE_CENTER_EXPORT extern const float kNotificationPreferredImageRatio;
22 MESSAGE_CENTER_EXPORT extern const int kSettingsIconSize; 22 MESSAGE_CENTER_EXPORT extern const int kSettingsIconSize;
23 23
24 // Limits. 24 // Limits.
25 MESSAGE_CENTER_EXPORT extern const size_t kMaxVisiblePopupNotifications; 25 MESSAGE_CENTER_EXPORT extern const size_t kMaxVisiblePopupNotifications;
26 MESSAGE_CENTER_EXPORT extern const size_t kMaxVisibleMessageCenterNotifications; 26 MESSAGE_CENTER_EXPORT extern const size_t kMaxVisibleMessageCenterNotifications;
27 27
28 // DIP dimension
29 MESSAGE_CENTER_EXPORT extern const int kNotificationWidth; // H size of the
30 // whole card.
31
28 // Within a notification /////////////////////////////////////////////////////// 32 // Within a notification ///////////////////////////////////////////////////////
29 33
30 // DIP dimensions (H = horizontal, V = vertical). 34 // DIP dimensions (H = horizontal, V = vertical).
31 extern const int kControlButtonSize; // Square size of close & expand buttons. 35 extern const int kControlButtonSize; // Square size of close & expand buttons.
32 extern const int kNotificationWidth; // H size of the whole card.
33 extern const int kIconToTextPadding; // H space between icon & title/message. 36 extern const int kIconToTextPadding; // H space between icon & title/message.
34 extern const int kTextTopPadding; // V space between text elements. 37 extern const int kTextTopPadding; // V space between text elements.
35 38
36 // Text sizes. 39 // Text sizes.
37 extern const int kTitleFontSize; // For title only. 40 extern const int kTitleFontSize; // For title only.
38 extern const int kTitleLineHeight; // In DIPs. 41 extern const int kTitleLineHeight; // In DIPs.
39 extern const int kMessageFontSize; // For everything but title. 42 extern const int kMessageFontSize; // For everything but title.
40 extern const int kMessageLineHeight; // In DIPs. 43 extern const int kMessageLineHeight; // In DIPs.
41 44
42 // Colors. 45 // Colors.
43 extern const SkColor kNotificationBackgroundColor; // Background of the card. 46 extern const SkColor kNotificationBackgroundColor; // Background of the card.
44 extern const SkColor kLegacyIconBackgroundColor; // Used behind icons smaller. 47 extern const SkColor kLegacyIconBackgroundColor; // Used behind icons smaller.
45 // than the icon view. 48 // than the icon view.
46 extern const SkColor kRegularTextColor; // Title, message, ... 49 extern const SkColor kRegularTextColor; // Title, message, ...
47 extern const SkColor kDimTextColor; 50 extern const SkColor kDimTextColor;
48 extern const SkColor kFocusBorderColor; // The focus border. 51 extern const SkColor kFocusBorderColor; // The focus border.
52 extern const SkColor kFrameBorderColor; // Frame border
49 53
50 // Limits. 54 // Limits.
51 55
52 // Given the size of an image, returns the rect the image should be displayed 56 // Given the size of an image, returns the rect the image should be displayed
53 // in, centered. 57 // in, centered.
54 gfx::Size GetImageSizeForWidth(int width, const gfx::Size& image_size); 58 gfx::Size GetImageSizeForWidth(int width, const gfx::Size& image_size);
55 59
56 extern const int kNotificationMaximumImageHeight; // For image notifications. 60 extern const int kNotificationMaximumImageHeight; // For image notifications.
57 extern const size_t kNotificationMaximumItems; // For list notifications. 61 extern const size_t kNotificationMaximumItems; // For list notifications.
58 62
(...skipping 30 matching lines...) Expand all
89 93
90 extern const SkColor kShadowColor; // Shadow in the tray. 94 extern const SkColor kShadowColor; // Shadow in the tray.
91 95
92 extern const SkColor kMessageCenterBackgroundColor; 96 extern const SkColor kMessageCenterBackgroundColor;
93 extern const SkColor kFooterDelimiterColor; // Separator color for the tray. 97 extern const SkColor kFooterDelimiterColor; // Separator color for the tray.
94 extern const SkColor kFooterTextColor; // Text color for tray labels. 98 extern const SkColor kFooterTextColor; // Text color for tray labels.
95 99
96 } // namespace message_center 100 } // namespace message_center
97 101
98 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ 102 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698