Chromium Code Reviews| 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 <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 Loading... | |
| 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 MESSAGE_CENTER_EXPORT extern const SkColor |
| 82 kImageBackgroundColor; // Background of the image. | |
|
dcheng
2016/04/27 01:04:09
I'd suggest moving this comment to before this lin
yoshiki
2016/04/28 18:43:21
Done.
| |
| 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 Loading... | |
| 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_ |
| OLD | NEW |