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

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

Issue 14327004: Moved some message center constants to message_center_constants.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 8 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_CONSTANTS_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_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/message_center/message_center_export.h" 10 #include "ui/message_center/message_center_export.h"
11 11
12 namespace message_center { 12 namespace message_center {
13 13
14 // Exported values ///////////////////////////////////////////////////////////// 14 // Exported values /////////////////////////////////////////////////////////////
15 15
16 // Square image sizes in pixels. 16 // Square image sizes in pixels.
17 MESSAGE_CENTER_EXPORT extern const int kNotificationButtonIconSize; 17 MESSAGE_CENTER_EXPORT extern const int kNotificationButtonIconSize;
18 MESSAGE_CENTER_EXPORT extern const int kNotificationIconSize; 18 MESSAGE_CENTER_EXPORT extern const int kNotificationIconSize;
19 MESSAGE_CENTER_EXPORT extern const int kNotificationPreferredImageSize; 19 MESSAGE_CENTER_EXPORT extern const int kNotificationPreferredImageSize;
20 MESSAGE_CENTER_EXPORT extern const int kSettingsIconSize; 20 MESSAGE_CENTER_EXPORT extern const int kSettingsIconSize;
21 21
22 // Limits.
23 MESSAGE_CENTER_EXPORT extern const size_t kMaxVisiblePopupNotifications;
24 MESSAGE_CENTER_EXPORT extern const size_t kMaxVisibleMessageCenterNotifications;
25
22 // Within a notification /////////////////////////////////////////////////////// 26 // Within a notification ///////////////////////////////////////////////////////
23 27
24 // Pixel dimensions (H = horizontal, V = vertical). 28 // Pixel dimensions (H = horizontal, V = vertical).
25 extern const int kControlButtonSize; // Square size of close & expand buttons. 29 extern const int kControlButtonSize; // Square size of close & expand buttons.
26 extern const int kNotificationWidth; // H size of the whole card. 30 extern const int kNotificationWidth; // H size of the whole card.
27 extern const int kIconToTextPadding; // H space between icon & title/message. 31 extern const int kIconToTextPadding; // H space between icon & title/message.
28 extern const int kTextTopPadding; // V space between text elements. 32 extern const int kTextTopPadding; // V space between text elements.
29 33
30 // Text sizes. 34 // Text sizes.
31 extern const int kTitleFontSize; // For title only. 35 extern const int kTitleFontSize; // For title only.
(...skipping 20 matching lines...) Expand all
52 extern const int kMarginBetweenItems; // H & V space around & between 56 extern const int kMarginBetweenItems; // H & V space around & between
53 // notifications. 57 // notifications.
54 58
55 // Colors. 59 // Colors.
56 extern const SkColor kBackgroundLightColor; // Behind notifications, gradient 60 extern const SkColor kBackgroundLightColor; // Behind notifications, gradient
57 extern const SkColor kBackgroundDarkColor; // from light to dark. 61 extern const SkColor kBackgroundDarkColor; // from light to dark.
58 62
59 } // namespace message_center 63 } // namespace message_center
60 64
61 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_ 65 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698