Android: remove ContentView/ContentViewCore NeedsReload().
[chromium-blink-merge.git] / ui / message_center / message_center_style.h
blob29f9f75175cc8b0d8937ed52863fe38b3e6a1df7
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
3 // found in the LICENSE file.
5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_
8 #include "base/basictypes.h"
9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/gfx/size.h"
11 #include "ui/message_center/message_center_export.h"
13 namespace message_center {
15 // Exported values /////////////////////////////////////////////////////////////
17 // Square image sizes in DIPs.
18 MESSAGE_CENTER_EXPORT extern const int kNotificationButtonIconSize;
19 MESSAGE_CENTER_EXPORT extern const int kNotificationIconSize;
20 MESSAGE_CENTER_EXPORT extern const int kNotificationPreferredImageSize;
21 MESSAGE_CENTER_EXPORT extern const float kNotificationPreferredImageRatio;
22 MESSAGE_CENTER_EXPORT extern const int kSettingsIconSize;
24 // Limits.
25 MESSAGE_CENTER_EXPORT extern const size_t kMaxVisiblePopupNotifications;
26 MESSAGE_CENTER_EXPORT extern const size_t kMaxVisibleMessageCenterNotifications;
28 // DIP dimension
29 MESSAGE_CENTER_EXPORT extern const int kNotificationWidth; // H size of the
30 // whole card.
32 // Colors.
33 MESSAGE_CENTER_EXPORT extern const SkColor kMessageCenterBorderColor;
34 MESSAGE_CENTER_EXPORT extern const SkColor kMessageCenterShadowColor;
36 // Within a notification ///////////////////////////////////////////////////////
38 // DIP dimensions (H = horizontal, V = vertical).
39 extern const int kControlButtonSize; // Square size of close & expand buttons.
40 extern const int kIconToTextPadding; // H space between icon & title/message.
41 extern const int kTextTopPadding; // V space between text elements.
42 extern const int kIconBottomPadding; // Minimum non-zero V space between icon
43 // and frame.
45 // Text sizes.
46 extern const int kTitleFontSize; // For title only.
47 extern const int kTitleLineHeight; // In DIPs.
48 extern const int kMessageFontSize; // For everything but title.
49 extern const int kMessageLineHeight; // In DIPs.
51 // Colors.
52 extern const SkColor kNotificationBackgroundColor; // Background of the card.
53 extern const SkColor kLegacyIconBackgroundColor; // Used behind icons smaller.
54 // than the icon view.
55 extern const SkColor kRegularTextColor; // Title, message, ...
56 extern const SkColor kDimTextColor;
57 extern const SkColor kFocusBorderColor; // The focus border.
59 // Limits.
61 // Given the size of an image, returns the rect the image should be displayed
62 // in, centered.
63 gfx::Size GetImageSizeForWidth(int width, const gfx::Size& image_size);
65 extern const int kNotificationMaximumImageHeight; // For image notifications.
66 extern const size_t kNotificationMaximumItems; // For list notifications.
68 // Timing.
69 extern const int kAutocloseDefaultDelaySeconds;
70 extern const int kAutocloseHighPriorityDelaySeconds;
72 // Buttons.
73 const int kButtonHeight = 38; // In DIPs.
74 const int kButtonHorizontalPadding = 16; // In DIPs.
75 const int kButtonIconTopPadding = 11; // In DIPs.
76 const int kButtonIconToTitlePadding = 16; // In DIPs.
78 #if !defined(OS_LINUX) || defined(USE_AURA)
79 const SkColor kButtonSeparatorColor = SkColorSetRGB(234, 234, 234);
80 const SkColor kHoveredButtonBackgroundColor = SkColorSetRGB(243, 243, 243);
81 #endif
83 // Progress bar.
84 const int kProgressBarThickness = 5;
85 const int kProgressBarTopPadding = 16;
86 const int kProgressBarCornerRadius = 3;
87 const SkColor kProgressBarBackgroundColor = SkColorSetRGB(216, 216, 216);
88 const SkColor kProgressBarSliceColor = SkColorSetRGB(120, 120, 120);
90 // Line limits.
91 const int kTitleLineLimit = 3;
92 const int kMessageCollapsedLineLimit = 3;
93 const int kMessageExpandedLineLimit = 7;
94 const int kContextMessageLineLimit = 1;
96 // Around notifications ////////////////////////////////////////////////////////
98 // DIP dimensions (H = horizontal, V = vertical).
99 MESSAGE_CENTER_EXPORT extern const int kMarginBetweenItems; // H & V space
100 // around & between
101 // notifications.
103 // Colors.
104 extern const SkColor kBackgroundLightColor; // Behind notifications, gradient
105 extern const SkColor kBackgroundDarkColor; // from light to dark.
107 extern const SkColor kShadowColor; // Shadow in the tray.
109 extern const SkColor kMessageCenterBackgroundColor;
110 extern const SkColor kFooterDelimiterColor; // Separator color for the tray.
111 extern const SkColor kFooterTextColor; // Text color for tray labels.
113 } // namespace message_center
115 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_