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 | 10 |
11 namespace ash { | 11 namespace ash { |
12 | 12 |
13 enum AccessibilityNotificationVisibility { | 13 enum AccessibilityNotificationVisibility { |
14 A11Y_NOTIFICATION_NONE, | 14 A11Y_NOTIFICATION_NONE, |
15 A11Y_NOTIFICATION_SHOW, | 15 A11Y_NOTIFICATION_SHOW, |
16 }; | 16 }; |
17 | 17 |
18 // A deletate class to control accessibility features. | 18 // A deletate class to control accessibility features. |
19 class ASH_EXPORT AccessibilityDelegate { | 19 class ASH_EXPORT AccessibilityDelegate { |
20 public: | 20 public: |
21 AccessibilityDelegate() {} | |
22 virtual ~AccessibilityDelegate() {} | 21 virtual ~AccessibilityDelegate() {} |
23 | 22 |
24 // Invoked to toggle spoken feedback for accessibility | 23 // Invoked to toggle spoken feedback for accessibility |
25 virtual void ToggleSpokenFeedback( | 24 virtual void ToggleSpokenFeedback( |
26 AccessibilityNotificationVisibility notify) = 0; | 25 AccessibilityNotificationVisibility notify) = 0; |
27 | 26 |
28 // Returns true if spoken feedback is enabled. | 27 // Returns true if spoken feedback is enabled. |
29 virtual bool IsSpokenFeedbackEnabled() const = 0; | 28 virtual bool IsSpokenFeedbackEnabled() const = 0; |
30 | 29 |
31 // Invoked to toggle high contrast mode for accessibility. | 30 // Invoked to toggle high contrast mode for accessibility. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual void SaveScreenMagnifierScale(double scale) = 0; | 68 virtual void SaveScreenMagnifierScale(double scale) = 0; |
70 | 69 |
71 // Gets a saved value of the zoom scale of full screen magnifier. If a value | 70 // Gets a saved value of the zoom scale of full screen magnifier. If a value |
72 // is not saved, return a negative value. | 71 // is not saved, return a negative value. |
73 virtual double GetSavedScreenMagnifierScale() = 0; | 72 virtual double GetSavedScreenMagnifierScale() = 0; |
74 }; | 73 }; |
75 | 74 |
76 } // namespace ash | 75 } // namespace ash |
77 | 76 |
78 #endif // ASH_ACCESSIBILITYDELEGATE_H_ | 77 #endif // ASH_ACCESSIBILITYDELEGATE_H_ |
OLD | NEW |