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 20 matching lines...) Expand all Loading... |
31 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment; | 31 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment; |
32 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment; | 32 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment; |
33 | 33 |
34 extern const int kTrayMenuBottomRowPadding; | 34 extern const int kTrayMenuBottomRowPadding; |
35 extern const int kTrayMenuBottomRowPaddingBetweenItems; | 35 extern const int kTrayMenuBottomRowPaddingBetweenItems; |
36 | 36 |
37 extern const int kTrayPopupAutoCloseDelayInSeconds; | 37 extern const int kTrayPopupAutoCloseDelayInSeconds; |
38 extern const int kTrayPopupAutoCloseDelayForTextInSeconds; | 38 extern const int kTrayPopupAutoCloseDelayForTextInSeconds; |
39 extern const int kTrayPopupPaddingHorizontal; | 39 extern const int kTrayPopupPaddingHorizontal; |
40 extern const int kTrayPopupPaddingBetweenItems; | 40 extern const int kTrayPopupPaddingBetweenItems; |
41 extern const int kTrayPopupTextSpacingVertical; | |
42 extern const int kTrayPopupUserCardVerticalPadding; | 41 extern const int kTrayPopupUserCardVerticalPadding; |
43 | 42 |
| 43 // The padding used on the left and right of labels. This applies to all labels |
| 44 // in the system menu. |
| 45 extern const int kTrayPopupLabelHorizontalPadding; |
| 46 |
44 // Padding used to adjust the slider position in volume row and brightness | 47 // Padding used to adjust the slider position in volume row and brightness |
45 // row horizontally. | 48 // row horizontally. |
46 extern const int kTrayPopupSliderPaddingMD; | 49 extern const int kTrayPopupSliderPaddingMD; |
47 | 50 |
48 extern const int kTrayPopupDetailsIconWidth; | 51 extern const int kTrayPopupDetailsIconWidth; |
49 extern const int kTrayPopupDetailsLabelExtraLeftMargin; | 52 extern const int kTrayPopupDetailsLabelExtraLeftMargin; |
50 extern const SkColor kTrayPopupHoverBackgroundColor; | 53 extern const SkColor kTrayPopupHoverBackgroundColor; |
51 extern const int kTrayPopupScrollSeparatorHeight; | 54 extern const int kTrayPopupScrollSeparatorHeight; |
52 extern const int kTrayRoundedBorderRadius; | 55 extern const int kTrayRoundedBorderRadius; |
53 | 56 |
(...skipping 68 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. This applies to all rows |
| 136 // in the system menu that have a main image (e.g. default and detailed). |
| 137 TRAY_POPUP_ITEM_MAIN_IMAGE_CONTAINER_WIDTH, |
| 138 |
| 139 // The width used for the 'more' arrow images. In general this applies to all |
| 140 // rows in the system menu that have a 'more' image however most, if not all, |
| 141 // are default rows. |
| 142 TRAY_POPUP_ITEM_MORE_IMAGE_CONTAINER_WIDTH, |
| 143 |
132 // The left inset for all tray system menu rows. | 144 // The left inset for all tray system menu rows. |
133 TRAY_POPUP_ITEM_LEFT_INSET, | 145 TRAY_POPUP_ITEM_LEFT_INSET, |
134 | 146 |
135 // The right inset for all tray system menu rows. | 147 // The right inset for all tray system menu rows. |
136 TRAY_POPUP_ITEM_RIGHT_INSET, | 148 TRAY_POPUP_ITEM_RIGHT_INSET, |
137 | 149 |
138 // The minimum default width for the left container of the system menu rows. | 150 // The minimum default width for the left container of the system menu rows. |
139 TRAY_POPUP_ITEM_MIN_START_WIDTH, | 151 TRAY_POPUP_ITEM_MIN_START_WIDTH, |
140 | 152 |
141 // The minimum default width for the right container of the system menu rows. | 153 // 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); | 169 int GetTrayConstant(TrayConstant constant); |
158 | 170 |
159 namespace test { | 171 namespace test { |
160 const int kSettingsTrayItemViewId = 10000; | 172 const int kSettingsTrayItemViewId = 10000; |
161 const int kAccessibilityTrayItemViewId = 10001; | 173 const int kAccessibilityTrayItemViewId = 10001; |
162 } // namespace test | 174 } // namespace test |
163 | 175 |
164 } // namespace ash | 176 } // namespace ash |
165 | 177 |
166 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ | 178 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ |
OLD | NEW |