OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ACCESSIBILITY_DELEGATE_H_ | 5 #ifndef ASH_ACCESSIBILITY_DELEGATE_H_ |
6 #define ASH_ACCESSIBILITY_DELEGATE_H_ | 6 #define ASH_ACCESSIBILITY_DELEGATE_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/magnifier/magnifier_constants.h" | 9 #include "ash/magnifier/magnifier_constants.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 | 13 |
14 enum AccessibilityNotificationVisibility { | 14 enum AccessibilityNotificationVisibility { |
15 A11Y_NOTIFICATION_NONE, | 15 A11Y_NOTIFICATION_NONE, |
16 A11Y_NOTIFICATION_SHOW, | 16 A11Y_NOTIFICATION_SHOW, |
17 }; | 17 }; |
18 | 18 |
19 enum AccessibilityAlert { | 19 enum AccessibilityAlert { |
20 A11Y_ALERT_NONE, | 20 A11Y_ALERT_NONE, |
21 A11Y_ALERT_WINDOW_NEEDED | 21 A11Y_ALERT_WINDOW_NEEDED, |
| 22 A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED |
22 }; | 23 }; |
23 | 24 |
24 // A delegate class to control and query accessibility features. | 25 // A delegate class to control and query accessibility features. |
25 class ASH_EXPORT AccessibilityDelegate { | 26 class ASH_EXPORT AccessibilityDelegate { |
26 public: | 27 public: |
27 virtual ~AccessibilityDelegate() {} | 28 virtual ~AccessibilityDelegate() {} |
28 | 29 |
29 // Invoked to toggle spoken feedback for accessibility | 30 // Invoked to toggle spoken feedback for accessibility |
30 virtual void ToggleSpokenFeedback( | 31 virtual void ToggleSpokenFeedback( |
31 AccessibilityNotificationVisibility notify) = 0; | 32 AccessibilityNotificationVisibility notify) = 0; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Gets the last accessibility alert that was triggered. | 92 // Gets the last accessibility alert that was triggered. |
92 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; | 93 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; |
93 | 94 |
94 // Initiates play of shutdown sound and returns it's duration. | 95 // Initiates play of shutdown sound and returns it's duration. |
95 virtual base::TimeDelta PlayShutdownSound() const = 0; | 96 virtual base::TimeDelta PlayShutdownSound() const = 0; |
96 }; | 97 }; |
97 | 98 |
98 } // namespace ash | 99 } // namespace ash |
99 | 100 |
100 #endif // ASH_ACCESSIBILITYDELEGATE_H_ | 101 #endif // ASH_ACCESSIBILITYDELEGATE_H_ |
OLD | NEW |