| 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/accessibility_types.h" | 8 #include "ash/accessibility_types.h" |
| 9 #include "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // Gets a saved value of the zoom scale of full screen magnifier. If a value | 126 // Gets a saved value of the zoom scale of full screen magnifier. If a value |
| 127 // is not saved, return a negative value. | 127 // is not saved, return a negative value. |
| 128 virtual double GetSavedScreenMagnifierScale() = 0; | 128 virtual double GetSavedScreenMagnifierScale() = 0; |
| 129 | 129 |
| 130 // Triggers an accessibility alert to give the user feedback. | 130 // Triggers an accessibility alert to give the user feedback. |
| 131 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0; | 131 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0; |
| 132 | 132 |
| 133 // Gets the last accessibility alert that was triggered. | 133 // Gets the last accessibility alert that was triggered. |
| 134 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; | 134 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; |
| 135 | 135 |
| 136 // Called when we first detect two fingers are held down, which can be |
| 137 // used to toggle spoken feedback on some touch-only devices. |
| 138 virtual void OnTwoFingerTouchStart() {} |
| 139 |
| 140 // Called when the user is no longer holding down two fingers (including |
| 141 // releasing one, holding down three, or moving them). |
| 142 virtual void OnTwoFingerTouchStop() {} |
| 143 |
| 136 // Whether or not to enable toggling spoken feedback via holding down | 144 // Whether or not to enable toggling spoken feedback via holding down |
| 137 // two fingers on the screen. | 145 // two fingers on the screen. |
| 138 virtual bool ShouldToggleSpokenFeedbackViaTouch() = 0; | 146 virtual bool ShouldToggleSpokenFeedbackViaTouch() = 0; |
| 139 | 147 |
| 140 // Play tick sound indicating spoken feedback will be toggled after countdown. | 148 // Play tick sound indicating spoken feedback will be toggled after countdown. |
| 141 virtual void PlaySpokenFeedbackToggleCountdown(int tick_count) = 0; | 149 virtual void PlaySpokenFeedbackToggleCountdown(int tick_count) = 0; |
| 142 | 150 |
| 143 // Plays an earcon. Earcons are brief and distinctive sounds that indicate | 151 // Plays an earcon. Earcons are brief and distinctive sounds that indicate |
| 144 // when their mapped event has occurred. The sound key enums can be found in | 152 // when their mapped event has occurred. The sound key enums can be found in |
| 145 // chromeos/audio/chromeos_sounds.h. | 153 // chromeos/audio/chromeos_sounds.h. |
| 146 virtual void PlayEarcon(int sound_key) = 0; | 154 virtual void PlayEarcon(int sound_key) = 0; |
| 147 | 155 |
| 148 // Initiates play of shutdown sound and returns it's duration. | 156 // Initiates play of shutdown sound and returns it's duration. |
| 149 virtual base::TimeDelta PlayShutdownSound() const = 0; | 157 virtual base::TimeDelta PlayShutdownSound() const = 0; |
| 150 | 158 |
| 151 // Forward an accessibility gesture from the touch exploration controller to | 159 // Forward an accessibility gesture from the touch exploration controller to |
| 152 // ChromeVox. | 160 // ChromeVox. |
| 153 virtual void HandleAccessibilityGesture(ui::AXGesture gesture) = 0; | 161 virtual void HandleAccessibilityGesture(ui::AXGesture gesture) = 0; |
| 154 }; | 162 }; |
| 155 | 163 |
| 156 } // namespace ash | 164 } // namespace ash |
| 157 | 165 |
| 158 #endif // ASH_ACCESSIBILITY_DELEGATE_H_ | 166 #endif // ASH_ACCESSIBILITY_DELEGATE_H_ |
| OLD | NEW |