OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_ACCESSIBILITY_TYPES_H_ | 5 #ifndef ASH_COMMON_ACCESSIBILITY_TYPES_H_ |
6 #define ASH_COMMON_ACCESSIBILITY_TYPES_H_ | 6 #define ASH_COMMON_ACCESSIBILITY_TYPES_H_ |
7 | 7 |
8 // TODO(jamescook): Move this to namespace ash. http://crbug.com/621574 | 8 namespace ash { |
9 namespace ui { | |
10 | 9 |
11 enum AccessibilityNotificationVisibility { | 10 enum AccessibilityNotificationVisibility { |
12 A11Y_NOTIFICATION_NONE, | 11 A11Y_NOTIFICATION_NONE, |
13 A11Y_NOTIFICATION_SHOW, | 12 A11Y_NOTIFICATION_SHOW, |
14 }; | 13 }; |
15 | 14 |
16 enum AccessibilityAlert { | 15 enum AccessibilityAlert { |
17 A11Y_ALERT_NONE, | 16 A11Y_ALERT_NONE, |
18 A11Y_ALERT_WINDOW_NEEDED, | 17 A11Y_ALERT_WINDOW_NEEDED, |
19 A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED | 18 A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED |
20 }; | 19 }; |
21 | 20 |
22 // Note: Do not change these values; UMA and prefs depend on them. | 21 // Note: Do not change these values; UMA and prefs depend on them. |
23 enum MagnifierType { | 22 enum MagnifierType { |
24 MAGNIFIER_FULL = 1, | 23 MAGNIFIER_FULL = 1, |
25 MAGNIFIER_PARTIAL = 2, | 24 MAGNIFIER_PARTIAL = 2, |
26 }; | 25 }; |
27 | 26 |
28 const int kMaxMagnifierType = 2; | 27 const int kMaxMagnifierType = 2; |
29 | 28 |
30 const MagnifierType kDefaultMagnifierType = MAGNIFIER_FULL; | 29 const MagnifierType kDefaultMagnifierType = MAGNIFIER_FULL; |
31 | 30 |
32 // Factor of magnification scale. For example, when this value is 1.189, scale | 31 // Factor of magnification scale. For example, when this value is 1.189, scale |
33 // value will be changed x1.000, x1.189, x1.414, x1.681, x2.000, ... | 32 // value will be changed x1.000, x1.189, x1.414, x1.681, x2.000, ... |
34 // Note: this value is 2.0 ^ (1 / 4). | 33 // Note: this value is 2.0 ^ (1 / 4). |
35 const float kMagnificationScaleFactor = 1.18920712f; | 34 const float kMagnificationScaleFactor = 1.18920712f; |
36 | 35 |
37 } // namespace ui | 36 } // namespace ash |
38 | 37 |
39 #endif // ASH_COMMON_ACCESSIBILITY_TYPES_H_ | 38 #endif // ASH_COMMON_ACCESSIBILITY_TYPES_H_ |
OLD | NEW |