Chromium Code Reviews| 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 "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "ui/accessibility/ax_enums.h" | |
| 10 #include "ui/chromeos/accessibility_types.h" | 11 #include "ui/chromeos/accessibility_types.h" |
| 11 | 12 |
| 12 namespace ash { | 13 namespace ash { |
| 13 | 14 |
| 14 // A delegate class to control and query accessibility features. | 15 // A delegate class to control and query accessibility features. |
| 15 class ASH_EXPORT AccessibilityDelegate { | 16 class ASH_EXPORT AccessibilityDelegate { |
| 16 public: | 17 public: |
| 17 virtual ~AccessibilityDelegate() {} | 18 virtual ~AccessibilityDelegate() {} |
| 18 | 19 |
| 19 // Invoked to toggle spoken feedback for accessibility | 20 // Invoked to toggle spoken feedback for accessibility |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 // Gets the last accessibility alert that was triggered. | 118 // Gets the last accessibility alert that was triggered. |
| 118 virtual ui::AccessibilityAlert GetLastAccessibilityAlert() = 0; | 119 virtual ui::AccessibilityAlert GetLastAccessibilityAlert() = 0; |
| 119 | 120 |
| 120 // Plays an earcon. Earcons are brief and distinctive sounds that indicate | 121 // Plays an earcon. Earcons are brief and distinctive sounds that indicate |
| 121 // when their mapped event has occurred. The sound key enums can be found in | 122 // when their mapped event has occurred. The sound key enums can be found in |
| 122 // chromeos/audio/chromeos_sounds.h. | 123 // chromeos/audio/chromeos_sounds.h. |
| 123 virtual void PlayEarcon(int sound_key) = 0; | 124 virtual void PlayEarcon(int sound_key) = 0; |
| 124 | 125 |
| 125 // Initiates play of shutdown sound and returns it's duration. | 126 // Initiates play of shutdown sound and returns it's duration. |
| 126 virtual base::TimeDelta PlayShutdownSound() const = 0; | 127 virtual base::TimeDelta PlayShutdownSound() const = 0; |
| 128 | |
| 129 // Forward an accessibility gesture from the touch exploration controller | |
| 130 // to ChromeVox. | |
|
David Tseng
2016/05/05 22:30:38
nit: 'to' fits above.
dmazzoni
2016/05/06 19:06:08
Done.
| |
| 131 virtual void HandleAccessibilityGesture(ui::AXGesture gesture) = 0; | |
| 127 }; | 132 }; |
| 128 | 133 |
| 129 } // namespace ash | 134 } // namespace ash |
| 130 | 135 |
| 131 #endif // ASH_ACCESSIBILITY_DELEGATE_H_ | 136 #endif // ASH_ACCESSIBILITY_DELEGATE_H_ |
| OLD | NEW |