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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 // The right inset for all tray system menu rows. | 161 // The right inset for all tray system menu rows. |
162 TRAY_POPUP_ITEM_RIGHT_INSET, | 162 TRAY_POPUP_ITEM_RIGHT_INSET, |
163 | 163 |
164 // The minimum default width for the left container of the system menu rows. | 164 // The minimum default width for the left container of the system menu rows. |
165 TRAY_POPUP_ITEM_MIN_START_WIDTH, | 165 TRAY_POPUP_ITEM_MIN_START_WIDTH, |
166 | 166 |
167 // The minimum default width for the right container of the system menu rows. | 167 // The minimum default width for the right container of the system menu rows. |
168 TRAY_POPUP_ITEM_MIN_END_WIDTH, | 168 TRAY_POPUP_ITEM_MIN_END_WIDTH, |
169 | 169 |
| 170 // Duration to delay transitions to the default view. |
| 171 TRAY_POPUP_TRANSITION_TO_DEFAULT_DELAY, |
| 172 |
| 173 // Duration to delay transitions to the detailed view. |
| 174 TRAY_POPUP_TRANSITION_TO_DETAILED_DELAY, |
| 175 |
170 // The width and height of the virtual keyboard button in the status tray | 176 // The width and height of the virtual keyboard button in the status tray |
171 // area. For non-MD, adjustments are made to the button dimensions based on | 177 // area. For non-MD, adjustments are made to the button dimensions based on |
172 // the shelf orientation, so this constant does not specify the true | 178 // the shelf orientation, so this constant does not specify the true |
173 // user-visible button bounds. | 179 // user-visible button bounds. |
174 VIRTUAL_KEYBOARD_BUTTON_SIZE, | 180 VIRTUAL_KEYBOARD_BUTTON_SIZE, |
175 | 181 |
176 // The icon size of opt-in IME menu tray. | 182 // The icon size of opt-in IME menu tray. |
177 TRAY_IME_MENU_ICON, | 183 TRAY_IME_MENU_ICON, |
178 | 184 |
179 // Extra padding used beside a single icon in the tray area of the shelf. | 185 // Extra padding used beside a single icon in the tray area of the shelf. |
180 TRAY_IMAGE_ITEM_PADDING, | 186 TRAY_IMAGE_ITEM_PADDING, |
181 }; | 187 }; |
182 | 188 |
183 int GetTrayConstant(TrayConstant constant); | 189 ASH_EXPORT int GetTrayConstant(TrayConstant constant); |
184 | 190 |
185 namespace test { | 191 namespace test { |
186 const int kSettingsTrayItemViewId = 10000; | 192 const int kSettingsTrayItemViewId = 10000; |
187 const int kAccessibilityTrayItemViewId = 10001; | 193 const int kAccessibilityTrayItemViewId = 10001; |
188 } // namespace test | 194 } // namespace test |
189 | 195 |
190 } // namespace ash | 196 } // namespace ash |
191 | 197 |
192 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ | 198 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ |
OLD | NEW |