| OLD | NEW | 
|---|
| 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" | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
| 22 const int kNotificationPreferredImageWidth = 360; | 22 const int kNotificationPreferredImageWidth = 360; | 
| 23 const int kNotificationPreferredImageHeight = 240; | 23 const int kNotificationPreferredImageHeight = 240; | 
| 24 const int kSettingsIconSize = 16; | 24 const int kSettingsIconSize = 16; | 
| 25 | 25 | 
| 26 // Limits. | 26 // Limits. | 
| 27 const size_t kMaxVisibleMessageCenterNotifications = 100; | 27 const size_t kMaxVisibleMessageCenterNotifications = 100; | 
| 28 const size_t kMaxVisiblePopupNotifications = 3; | 28 const size_t kMaxVisiblePopupNotifications = 3; | 
| 29 | 29 | 
| 30 // DIP dimension; H size of the whole card. | 30 // DIP dimension; H size of the whole card. | 
| 31 const int kNotificationWidth = 360; | 31 const int kNotificationWidth = 360; | 
|  | 32 const int kMinScrollViewHeight = 100; | 
| 32 | 33 | 
| 33 // Colors. | 34 // Colors. | 
| 34 MESSAGE_CENTER_EXPORT extern const SkColor kMessageCenterBorderColor; | 35 MESSAGE_CENTER_EXPORT extern const SkColor kMessageCenterBorderColor; | 
| 35 MESSAGE_CENTER_EXPORT extern const SkColor kMessageCenterShadowColor; | 36 MESSAGE_CENTER_EXPORT extern const SkColor kMessageCenterShadowColor; | 
| 36 | 37 | 
| 37 // Settings dialog constants. | 38 // Settings dialog constants. | 
| 38 namespace settings { | 39 namespace settings { | 
| 39 | 40 | 
| 40 const SkColor kEntrySeparatorColor = SkColorSetARGB(0.1 * 255, 0, 0, 0); | 41 const SkColor kEntrySeparatorColor = SkColorSetARGB(0.1 * 255, 0, 0, 0); | 
| 41 const int kEntryHeight = 45; | 42 const int kEntryHeight = 45; | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 55 // DIP dimensions (H = horizontal, V = vertical). | 56 // DIP dimensions (H = horizontal, V = vertical). | 
| 56 | 57 | 
| 57 const int kControlButtonSize = 29;  // Square size of close & expand buttons. | 58 const int kControlButtonSize = 29;  // Square size of close & expand buttons. | 
| 58 const int kIconToTextPadding = 16;  // H space between icon & title/message. | 59 const int kIconToTextPadding = 16;  // H space between icon & title/message. | 
| 59 const int kTextTopPadding = 12;     // V space between text elements. | 60 const int kTextTopPadding = 12;     // V space between text elements. | 
| 60 const int kIconBottomPadding = 16;  // Minimum non-zero V space between icon | 61 const int kIconBottomPadding = 16;  // Minimum non-zero V space between icon | 
| 61                                     // and frame. | 62                                     // and frame. | 
| 62 | 63 | 
| 63 // Text sizes. | 64 // Text sizes. | 
| 64 const int kTitleFontSize = 14;             // For title only. | 65 const int kTitleFontSize = 14;             // For title only. | 
|  | 66 const int kEmptyCenterFontSize = 13;       // For empty message only. | 
| 65 const int kTitleLineHeight = 20;           // In DIPs. | 67 const int kTitleLineHeight = 20;           // In DIPs. | 
| 66 const int kMessageFontSize = 12;           // For everything but title. | 68 const int kMessageFontSize = 12;           // For everything but title. | 
| 67 const int kMessageLineHeight = 18;         // In DIPs. | 69 const int kMessageLineHeight = 18;         // In DIPs. | 
| 68 | 70 | 
| 69 // Colors. | 71 // Colors. | 
| 70 extern const SkColor kNotificationBackgroundColor; // Background of the card. | 72 extern const SkColor kNotificationBackgroundColor; // Background of the card. | 
| 71 extern const SkColor kImageBackgroundColor;        // Background of the image. | 73 extern const SkColor kImageBackgroundColor;        // Background of the image. | 
| 72 extern const SkColor kIconBackgroundColor;         // Used behind icons smaller | 74 extern const SkColor kIconBackgroundColor;         // Used behind icons smaller | 
| 73                                                    // than the icon view. | 75                                                    // than the icon view. | 
| 74 extern const SkColor kRegularTextColor;            // Title, message, ... | 76 extern const SkColor kRegularTextColor;            // Title, message, ... | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 126 | 128 | 
| 127 extern const SkColor kShadowColor;           // Shadow in the tray. | 129 extern const SkColor kShadowColor;           // Shadow in the tray. | 
| 128 | 130 | 
| 129 extern const SkColor kMessageCenterBackgroundColor; | 131 extern const SkColor kMessageCenterBackgroundColor; | 
| 130 extern const SkColor kFooterDelimiterColor;  // Separator color for the tray. | 132 extern const SkColor kFooterDelimiterColor;  // Separator color for the tray. | 
| 131 extern const SkColor kFooterTextColor;       // Text color for tray labels. | 133 extern const SkColor kFooterTextColor;       // Text color for tray labels. | 
| 132 | 134 | 
| 133 }  // namespace message_center | 135 }  // namespace message_center | 
| 134 | 136 | 
| 135 #endif  // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ | 137 #endif  // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ | 
| OLD | NEW | 
|---|