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 ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ |
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 | 9 |
10 typedef unsigned int SkColor; | 10 typedef unsigned int SkColor; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 // Padding used to adjust the slider position in volume row and brightness | 44 // Padding used to adjust the slider position in volume row and brightness |
45 // row horizontally. | 45 // row horizontally. |
46 extern const int kTrayPopupSliderPaddingMD; | 46 extern const int kTrayPopupSliderPaddingMD; |
47 | 47 |
48 extern const int kTrayPopupDetailsIconWidth; | 48 extern const int kTrayPopupDetailsIconWidth; |
49 extern const int kTrayPopupDetailsLabelExtraLeftMargin; | 49 extern const int kTrayPopupDetailsLabelExtraLeftMargin; |
50 extern const SkColor kTrayPopupHoverBackgroundColor; | 50 extern const SkColor kTrayPopupHoverBackgroundColor; |
51 extern const int kTrayPopupScrollSeparatorHeight; | 51 extern const int kTrayPopupScrollSeparatorHeight; |
52 extern const int kTrayRoundedBorderRadius; | 52 extern const int kTrayRoundedBorderRadius; |
53 | 53 |
54 // The padding used on the left and right of labels. | |
tdanderson
2016/11/01 18:59:44
nit: please specify in the comment if the constant
bruthig
2016/11/01 23:00:43
Done.
| |
55 extern const int kTrayPopupLabelHorizontalPadding; | |
56 | |
54 extern const SkColor kBackgroundColor; | 57 extern const SkColor kBackgroundColor; |
55 extern const SkColor kHoverBackgroundColor; | 58 extern const SkColor kHoverBackgroundColor; |
56 extern const SkColor kPublicAccountBackgroundColor; | 59 extern const SkColor kPublicAccountBackgroundColor; |
57 extern const SkColor kPublicAccountUserCardTextColor; | 60 extern const SkColor kPublicAccountUserCardTextColor; |
58 extern const SkColor kPublicAccountUserCardNameColor; | 61 extern const SkColor kPublicAccountUserCardNameColor; |
59 | 62 |
60 extern const SkColor kHeaderBackgroundColor; | 63 extern const SkColor kHeaderBackgroundColor; |
61 | 64 |
62 extern const SkColor kBorderDarkColor; | 65 extern const SkColor kBorderDarkColor; |
63 extern const SkColor kBorderLightColor; | 66 extern const SkColor kBorderLightColor; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
122 | 125 |
123 // Padding between items in the status tray area. | 126 // Padding between items in the status tray area. |
124 TRAY_SPACING, | 127 TRAY_SPACING, |
125 | 128 |
126 // Padding between the edge of shelf and the item in status tray area. | 129 // Padding between the edge of shelf and the item in status tray area. |
127 TRAY_PADDING_FROM_EDGE_OF_SHELF, | 130 TRAY_PADDING_FROM_EDGE_OF_SHELF, |
128 | 131 |
129 // The height of the rows in the system tray menu. | 132 // The height of the rows in the system tray menu. |
130 TRAY_POPUP_ITEM_HEIGHT, | 133 TRAY_POPUP_ITEM_HEIGHT, |
131 | 134 |
135 // The width used for the main image of the row. | |
136 TRAY_POPUP_ITEM_MAIN_IMAGE_CONTAINER_WIDTH, | |
137 | |
138 // The width used for the 'more' arrow images. | |
139 TRAY_POPUP_ITEM_MORE_IMAGE_CONTAINER_WIDTH, | |
140 | |
132 // The left inset for all tray system menu rows. | 141 // The left inset for all tray system menu rows. |
133 TRAY_POPUP_ITEM_LEFT_INSET, | 142 TRAY_POPUP_ITEM_LEFT_INSET, |
134 | 143 |
135 // The right inset for all tray system menu rows. | 144 // The right inset for all tray system menu rows. |
136 TRAY_POPUP_ITEM_RIGHT_INSET, | 145 TRAY_POPUP_ITEM_RIGHT_INSET, |
137 | 146 |
138 // The minimum default width for the left container of the system menu rows. | 147 // The minimum default width for the left container of the system menu rows. |
139 TRAY_POPUP_ITEM_MIN_START_WIDTH, | 148 TRAY_POPUP_ITEM_MIN_START_WIDTH, |
140 | 149 |
141 // The minimum default width for the right container of the system menu rows. | 150 // The minimum default width for the right container of the system menu rows. |
(...skipping 15 matching lines...) Expand all Loading... | |
157 int GetTrayConstant(TrayConstant constant); | 166 int GetTrayConstant(TrayConstant constant); |
158 | 167 |
159 namespace test { | 168 namespace test { |
160 const int kSettingsTrayItemViewId = 10000; | 169 const int kSettingsTrayItemViewId = 10000; |
161 const int kAccessibilityTrayItemViewId = 10001; | 170 const int kAccessibilityTrayItemViewId = 10001; |
162 } // namespace test | 171 } // namespace test |
163 | 172 |
164 } // namespace ash | 173 } // namespace ash |
165 | 174 |
166 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ | 175 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ |
OLD | NEW |