Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(648)

Side by Side Diff: ash/common/accessibility_types.h

Issue 2507733004: Send screen on and off state as a11y alert (Closed)
Patch Set: alert when SetBacklightsForcedOff Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ash/system/chromeos/power/tablet_power_button_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 namespace ash { 8 namespace ash {
9 9
10 enum AccessibilityNotificationVisibility { 10 enum AccessibilityNotificationVisibility {
11 A11Y_NOTIFICATION_NONE, 11 A11Y_NOTIFICATION_NONE,
12 A11Y_NOTIFICATION_SHOW, 12 A11Y_NOTIFICATION_SHOW,
13 }; 13 };
14 14
15 enum AccessibilityAlert { 15 enum AccessibilityAlert {
16 A11Y_ALERT_NONE, 16 A11Y_ALERT_NONE,
17 A11Y_ALERT_CAPS_ON, 17 A11Y_ALERT_CAPS_ON,
18 A11Y_ALERT_CAPS_OFF, 18 A11Y_ALERT_CAPS_OFF,
19 A11Y_ALERT_SCREEN_ON,
20 A11Y_ALERT_SCREEN_OFF,
19 A11Y_ALERT_WINDOW_NEEDED, 21 A11Y_ALERT_WINDOW_NEEDED,
20 A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED 22 A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED
21 }; 23 };
22 24
23 // Note: Do not change these values; UMA and prefs depend on them. 25 // Note: Do not change these values; UMA and prefs depend on them.
24 enum MagnifierType { 26 enum MagnifierType {
25 MAGNIFIER_FULL = 1, 27 MAGNIFIER_FULL = 1,
26 MAGNIFIER_PARTIAL = 2, 28 MAGNIFIER_PARTIAL = 2,
27 }; 29 };
28 30
29 const int kMaxMagnifierType = 2; 31 const int kMaxMagnifierType = 2;
30 32
31 const MagnifierType kDefaultMagnifierType = MAGNIFIER_FULL; 33 const MagnifierType kDefaultMagnifierType = MAGNIFIER_FULL;
32 34
33 // Factor of magnification scale. For example, when this value is 1.189, scale 35 // Factor of magnification scale. For example, when this value is 1.189, scale
34 // value will be changed x1.000, x1.189, x1.414, x1.681, x2.000, ... 36 // value will be changed x1.000, x1.189, x1.414, x1.681, x2.000, ...
35 // Note: this value is 2.0 ^ (1 / 4). 37 // Note: this value is 2.0 ^ (1 / 4).
36 const float kMagnificationScaleFactor = 1.18920712f; 38 const float kMagnificationScaleFactor = 1.18920712f;
37 39
38 } // namespace ash 40 } // namespace ash
39 41
40 #endif // ASH_COMMON_ACCESSIBILITY_TYPES_H_ 42 #endif // ASH_COMMON_ACCESSIBILITY_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/chromeos/power/tablet_power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698