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 10 matching lines...) Expand all Loading... |
21 extern const int kBubblePaddingHorizontalSide; | 21 extern const int kBubblePaddingHorizontalSide; |
22 extern const int kBubblePaddingVerticalBottom; | 22 extern const int kBubblePaddingVerticalBottom; |
23 extern const int kBubblePaddingVerticalSide; | 23 extern const int kBubblePaddingVerticalSide; |
24 | 24 |
25 extern const int kTrayBubbleAnchorTopInsetBottomAnchor; | 25 extern const int kTrayBubbleAnchorTopInsetBottomAnchor; |
26 | 26 |
27 extern const int kTrayImageItemHorizontalPaddingVerticalAlignment; | 27 extern const int kTrayImageItemHorizontalPaddingVerticalAlignment; |
28 | 28 |
29 ASH_EXPORT extern const int kTrayItemSize; | 29 ASH_EXPORT extern const int kTrayItemSize; |
30 | 30 |
| 31 // Extra padding used beside a single icon in the tray area of the shelf. |
| 32 extern const int kTrayImageItemPadding; |
| 33 |
31 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment; | 34 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment; |
32 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment; | 35 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment; |
33 | 36 |
34 extern const int kTrayMenuBottomRowPadding; | 37 extern const int kTrayMenuBottomRowPadding; |
35 extern const int kTrayMenuBottomRowPaddingBetweenItems; | 38 extern const int kTrayMenuBottomRowPaddingBetweenItems; |
36 | 39 |
37 // The minimum width of the tray menu. | 40 // The minimum width of the tray menu. |
38 extern const int kTrayMenuMinimumWidth; | 41 extern const int kTrayMenuMinimumWidth; |
39 extern const int kTrayMenuMinimumWidthMd; | 42 extern const int kTrayMenuMinimumWidthMd; |
40 | 43 |
41 extern const int kTrayPopupAutoCloseDelayInSeconds; | 44 extern const int kTrayPopupAutoCloseDelayInSeconds; |
42 extern const int kTrayPopupAutoCloseDelayForTextInSeconds; | 45 extern const int kTrayPopupAutoCloseDelayForTextInSeconds; |
43 extern const int kTrayPopupPaddingHorizontal; | 46 extern const int kTrayPopupPaddingHorizontal; |
44 extern const int kTrayPopupPaddingBetweenItems; | 47 extern const int kTrayPopupPaddingBetweenItems; |
45 // Used for buttons that have borders. | |
46 extern const int kTrayPopupButtonEndMargin; | 48 extern const int kTrayPopupButtonEndMargin; |
47 // The padding used on the left and right of labels. This applies to all labels | 49 // The padding used on the left and right of labels. This applies to all labels |
48 // in the system menu. | 50 // in the system menu. |
49 extern const int kTrayPopupLabelHorizontalPadding; | 51 extern const int kTrayPopupLabelHorizontalPadding; |
50 | 52 |
| 53 // The minimum/default height of the rows in the system tray menu. |
| 54 extern const int kTrayPopupItemMinHeight; |
| 55 |
| 56 // The width used for the first region of the row (which holds an image). |
| 57 extern const int kTrayPopupItemMinStartWidth; |
| 58 |
| 59 // The width used for the end region of the row (usually a more arrow). |
| 60 extern const int kTrayPopupItemMinEndWidth; |
| 61 |
51 // When transitioning between a detailed and a default view, this delay is used | 62 // When transitioning between a detailed and a default view, this delay is used |
52 // before the transition starts. | 63 // before the transition starts. |
53 ASH_EXPORT extern const int kTrayDetailedViewTransitionDelayMs; | 64 ASH_EXPORT extern const int kTrayDetailedViewTransitionDelayMs; |
54 | 65 |
55 // Padding used on right side of labels to keep minimum distance to the next | 66 // Padding used on right side of labels to keep minimum distance to the next |
56 // item. This applies to all labels in the system menu. | 67 // item. This applies to all labels in the system menu. |
57 extern const int kTrayPopupLabelRightPadding; | 68 extern const int kTrayPopupLabelRightPadding; |
58 | 69 |
59 extern const int kTrayPopupDetailsIconWidth; | 70 extern const int kTrayPopupDetailsIconWidth; |
60 extern const int kTrayPopupDetailsLabelExtraLeftMargin; | 71 extern const int kTrayPopupDetailsLabelExtraLeftMargin; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // The inset applied to clickable surfaces in the system menu that do not have | 142 // The inset applied to clickable surfaces in the system menu that do not have |
132 // the ink drop filling the entire bounds. | 143 // the ink drop filling the entire bounds. |
133 extern const int kTrayPopupInkDropInset; | 144 extern const int kTrayPopupInkDropInset; |
134 | 145 |
135 // The radius used to draw the corners of the rounded rect style ink drops. | 146 // The radius used to draw the corners of the rounded rect style ink drops. |
136 extern const int kTrayPopupInkDropCornerRadius; | 147 extern const int kTrayPopupInkDropCornerRadius; |
137 | 148 |
138 // The height of the system info row. | 149 // The height of the system info row. |
139 extern const int kTrayPopupSystemInfoRowHeight; | 150 extern const int kTrayPopupSystemInfoRowHeight; |
140 | 151 |
141 // Padding between the edge of shelf and the item in status tray area. | |
142 extern const int kTrayPaddingFromEdgeOfShelf; | |
143 | |
144 enum TrayConstant { | |
145 // The minimum height of the rows in the system tray menu. | |
146 TRAY_POPUP_ITEM_MIN_HEIGHT, | |
147 | |
148 // The maximum height of the rows in the system tray menu. | |
149 TRAY_POPUP_ITEM_MAX_HEIGHT, | |
150 | |
151 // The width used for the main image of the row. This applies to all rows | |
152 // in the system menu that have a main image (e.g. default and detailed). | |
153 TRAY_POPUP_ITEM_MAIN_IMAGE_CONTAINER_WIDTH, | |
154 | |
155 // The width used for the images used in the 'more' region of default rows. | |
156 TRAY_POPUP_ITEM_MORE_IMAGE_SIZE, | |
157 | |
158 // The horizontal inset in the 'more' region of default rows. | |
159 TRAY_POPUP_ITEM_MORE_REGION_HORIZONTAL_INSET, | |
160 | |
161 // The left inset for all tray system menu rows. | |
162 TRAY_POPUP_ITEM_LEFT_INSET, | |
163 | |
164 // The minimum default width for the left container of the system menu rows. | |
165 TRAY_POPUP_ITEM_MIN_START_WIDTH, | |
166 | |
167 // The minimum default width for the right container of the system menu rows. | |
168 TRAY_POPUP_ITEM_MIN_END_WIDTH, | |
169 | |
170 // The icon size of opt-in IME menu tray. | |
171 TRAY_IME_MENU_ICON, | |
172 | |
173 // Extra padding used beside a single icon in the tray area of the shelf. | |
174 TRAY_IMAGE_ITEM_PADDING, | |
175 }; | |
176 | |
177 ASH_EXPORT int GetTrayConstant(TrayConstant constant); | |
178 | |
179 namespace test { | 152 namespace test { |
180 const int kSettingsTrayItemViewId = 10000; | 153 const int kSettingsTrayItemViewId = 10000; |
181 const int kAccessibilityTrayItemViewId = 10001; | 154 const int kAccessibilityTrayItemViewId = 10001; |
182 } // namespace test | 155 } // namespace test |
183 | 156 |
184 } // namespace ash | 157 } // namespace ash |
185 | 158 |
186 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ | 159 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ |
OLD | NEW |