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_COMMON_ACCESSIBILITY_DELEGATE_H_ | 5 #ifndef ASH_COMMON_ACCESSIBILITY_DELEGATE_H_ |
6 #define ASH_COMMON_ACCESSIBILITY_DELEGATE_H_ | 6 #define ASH_COMMON_ACCESSIBILITY_DELEGATE_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/common/accessibility_types.h" | 9 #include "ash/common/accessibility_types.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Gets a saved value of the zoom scale of full screen magnifier. If a value | 114 // Gets a saved value of the zoom scale of full screen magnifier. If a value |
115 // is not saved, return a negative value. | 115 // is not saved, return a negative value. |
116 virtual double GetSavedScreenMagnifierScale() = 0; | 116 virtual double GetSavedScreenMagnifierScale() = 0; |
117 | 117 |
118 // Triggers an accessibility alert to give the user feedback. | 118 // Triggers an accessibility alert to give the user feedback. |
119 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0; | 119 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0; |
120 | 120 |
121 // Gets the last accessibility alert that was triggered. | 121 // Gets the last accessibility alert that was triggered. |
122 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; | 122 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; |
123 | 123 |
| 124 // Whether or not to enable toggling spoken feedback via holding down |
| 125 // two fingers on the screen. |
| 126 virtual bool ShouldToggleSpokenFeedbackViaTouch() = 0; |
| 127 |
| 128 // Play tick sound indicating spoken feedback will be toggled after countdown. |
| 129 virtual void PlaySpokenFeedbackToggleCountdown(int tick_count) = 0; |
| 130 |
124 // Plays an earcon. Earcons are brief and distinctive sounds that indicate | 131 // Plays an earcon. Earcons are brief and distinctive sounds that indicate |
125 // when their mapped event has occurred. The sound key enums can be found in | 132 // when their mapped event has occurred. The sound key enums can be found in |
126 // chromeos/audio/chromeos_sounds.h. | 133 // chromeos/audio/chromeos_sounds.h. |
127 virtual void PlayEarcon(int sound_key) = 0; | 134 virtual void PlayEarcon(int sound_key) = 0; |
128 | 135 |
129 // Initiates play of shutdown sound and returns it's duration. | 136 // Initiates play of shutdown sound and returns it's duration. |
130 virtual base::TimeDelta PlayShutdownSound() const = 0; | 137 virtual base::TimeDelta PlayShutdownSound() const = 0; |
131 | 138 |
132 // Forward an accessibility gesture from the touch exploration controller to | 139 // Forward an accessibility gesture from the touch exploration controller to |
133 // ChromeVox. | 140 // ChromeVox. |
134 virtual void HandleAccessibilityGesture(ui::AXGesture gesture) = 0; | 141 virtual void HandleAccessibilityGesture(ui::AXGesture gesture) = 0; |
135 }; | 142 }; |
136 | 143 |
137 } // namespace ash | 144 } // namespace ash |
138 | 145 |
139 #endif // ASH_COMMON_ACCESSIBILITY_DELEGATE_H_ | 146 #endif // ASH_COMMON_ACCESSIBILITY_DELEGATE_H_ |
OLD | NEW |