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