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

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

Issue 1883473002: arc: Support more types of notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 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 | « ui/arc/notification/arc_notification_item.cc ('k') | no next file » | 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // Text sizes. 72 // Text sizes.
73 const int kTitleFontSize = 14; // For title only. 73 const int kTitleFontSize = 14; // For title only.
74 const int kEmptyCenterFontSize = 13; // For empty message only. 74 const int kEmptyCenterFontSize = 13; // For empty message only.
75 const int kTitleLineHeight = 20; // In DIPs. 75 const int kTitleLineHeight = 20; // In DIPs.
76 const int kMessageFontSize = 12; // For everything but title. 76 const int kMessageFontSize = 12; // For everything but title.
77 const int kMessageLineHeight = 18; // In DIPs. 77 const int kMessageLineHeight = 18; // In DIPs.
78 78
79 // Colors. 79 // Colors.
80 extern const SkColor kNotificationBackgroundColor; // Background of the card. 80 extern const SkColor kNotificationBackgroundColor; // Background of the card.
81 extern const SkColor kImageBackgroundColor; // Background of the image. 81 // Background of the image.
82 MESSAGE_CENTER_EXPORT extern const SkColor kImageBackgroundColor;
82 extern const SkColor kIconBackgroundColor; // Used behind icons smaller 83 extern const SkColor kIconBackgroundColor; // Used behind icons smaller
83 // than the icon view. 84 // than the icon view.
84 extern const SkColor kRegularTextColor; // Title, message, ... 85 extern const SkColor kRegularTextColor; // Title, message, ...
85 extern const SkColor kDimTextColor; 86 extern const SkColor kDimTextColor;
86 extern const SkColor kFocusBorderColor; // The focus border. 87 extern const SkColor kFocusBorderColor; // The focus border.
87 MESSAGE_CENTER_EXPORT extern const SkColor 88 MESSAGE_CENTER_EXPORT extern const SkColor
88 kSmallImageMaskForegroundColor; // Foreground of small icon image. 89 kSmallImageMaskForegroundColor; // Foreground of small icon image.
89 MESSAGE_CENTER_EXPORT extern const SkColor 90 MESSAGE_CENTER_EXPORT extern const SkColor
90 kSmallImageMaskBackgroundColor; // Background of small icon image. 91 kSmallImageMaskBackgroundColor; // Background of small icon image.
91 92
92 // Limits. 93 // Limits.
93 94
94 // Given the size of an image, returns the size of the properly scaled-up image 95 // Given the size of an image, returns the size of the properly scaled-up image
95 // which fits into |container_size|. 96 // which fits into |container_size|.
96 MESSAGE_CENTER_EXPORT gfx::Size GetImageSizeForContainerSize( 97 MESSAGE_CENTER_EXPORT gfx::Size GetImageSizeForContainerSize(
97 const gfx::Size& container_size, 98 const gfx::Size& container_size,
98 const gfx::Size& image_size); 99 const gfx::Size& image_size);
99 100
100 extern const int kNotificationMaximumImageHeight; // For image notifications. 101 extern const int kNotificationMaximumImageHeight; // For image notifications.
101 extern const size_t kNotificationMaximumItems; // For list notifications. 102 MESSAGE_CENTER_EXPORT extern const size_t
103 kNotificationMaximumItems; // For list notifications.
102 104
103 // Timing. 105 // Timing.
104 extern const int kAutocloseDefaultDelaySeconds; 106 extern const int kAutocloseDefaultDelaySeconds;
105 extern const int kAutocloseHighPriorityDelaySeconds; 107 extern const int kAutocloseHighPriorityDelaySeconds;
106 extern const int kAutocloseWebPageDelaySeconds; 108 extern const int kAutocloseWebPageDelaySeconds;
107 109
108 // Buttons. 110 // Buttons.
109 const int kButtonHeight = 38; // In DIPs. 111 const int kButtonHeight = 38; // In DIPs.
110 const int kButtonHorizontalPadding = 16; // In DIPs. 112 const int kButtonHorizontalPadding = 16; // In DIPs.
111 const int kButtonIconTopPadding = 11; // In DIPs. 113 const int kButtonIconTopPadding = 11; // In DIPs.
(...skipping 29 matching lines...) Expand all
141 143
142 extern const SkColor kShadowColor; // Shadow in the tray. 144 extern const SkColor kShadowColor; // Shadow in the tray.
143 145
144 extern const SkColor kMessageCenterBackgroundColor; 146 extern const SkColor kMessageCenterBackgroundColor;
145 extern const SkColor kFooterDelimiterColor; // Separator color for the tray. 147 extern const SkColor kFooterDelimiterColor; // Separator color for the tray.
146 extern const SkColor kFooterTextColor; // Text color for tray labels. 148 extern const SkColor kFooterTextColor; // Text color for tray labels.
147 149
148 } // namespace message_center 150 } // namespace message_center
149 151
150 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ 152 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_
OLDNEW
« no previous file with comments | « ui/arc/notification/arc_notification_item.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698