| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 // Returns true when the accessibility menu should be shown. | 99 // Returns true when the accessibility menu should be shown. |
| 100 virtual bool ShouldShowAccessibilityMenu() const = 0; | 100 virtual bool ShouldShowAccessibilityMenu() const = 0; |
| 101 | 101 |
| 102 // Returns true if a braille display is connected to the system. | 102 // Returns true if a braille display is connected to the system. |
| 103 virtual bool IsBrailleDisplayConnected() const = 0; | 103 virtual bool IsBrailleDisplayConnected() const = 0; |
| 104 | 104 |
| 105 // Cancel all current and queued speech immediately. | 105 // Cancel all current and queued speech immediately. |
| 106 virtual void SilenceSpokenFeedback() const = 0; | 106 virtual void SilenceSpokenFeedback() const = 0; |
| 107 | 107 |
| 108 // Clear the focus highlight |
| 109 virtual void ClearFocusHighlight() const = 0; |
| 110 |
| 108 // Saves the zoom scale of the full screen magnifier. | 111 // Saves the zoom scale of the full screen magnifier. |
| 109 virtual void SaveScreenMagnifierScale(double scale) = 0; | 112 virtual void SaveScreenMagnifierScale(double scale) = 0; |
| 110 | 113 |
| 111 // 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 |
| 112 // is not saved, return a negative value. | 115 // is not saved, return a negative value. |
| 113 virtual double GetSavedScreenMagnifierScale() = 0; | 116 virtual double GetSavedScreenMagnifierScale() = 0; |
| 114 | 117 |
| 115 // Triggers an accessibility alert to give the user feedback. | 118 // Triggers an accessibility alert to give the user feedback. |
| 116 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0; | 119 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0; |
| 117 | 120 |
| 118 // Gets the last accessibility alert that was triggered. | 121 // Gets the last accessibility alert that was triggered. |
| 119 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; | 122 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; |
| 120 | 123 |
| 121 // Plays an earcon. Earcons are brief and distinctive sounds that indicate | 124 // Plays an earcon. Earcons are brief and distinctive sounds that indicate |
| 122 // when their mapped event has occurred. The sound key enums can be found in | 125 // when their mapped event has occurred. The sound key enums can be found in |
| 123 // chromeos/audio/chromeos_sounds.h. | 126 // chromeos/audio/chromeos_sounds.h. |
| 124 virtual void PlayEarcon(int sound_key) = 0; | 127 virtual void PlayEarcon(int sound_key) = 0; |
| 125 | 128 |
| 126 // Initiates play of shutdown sound and returns it's duration. | 129 // Initiates play of shutdown sound and returns it's duration. |
| 127 virtual base::TimeDelta PlayShutdownSound() const = 0; | 130 virtual base::TimeDelta PlayShutdownSound() const = 0; |
| 128 | 131 |
| 129 // Forward an accessibility gesture from the touch exploration controller to | 132 // Forward an accessibility gesture from the touch exploration controller to |
| 130 // ChromeVox. | 133 // ChromeVox. |
| 131 virtual void HandleAccessibilityGesture(ui::AXGesture gesture) = 0; | 134 virtual void HandleAccessibilityGesture(ui::AXGesture gesture) = 0; |
| 132 }; | 135 }; |
| 133 | 136 |
| 134 } // namespace ash | 137 } // namespace ash |
| 135 | 138 |
| 136 #endif // ASH_COMMON_ACCESSIBILITY_DELEGATE_H_ | 139 #endif // ASH_COMMON_ACCESSIBILITY_DELEGATE_H_ |
| OLD | NEW |