| 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 "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "ui/accessibility/ax_enums.h" | |
| 11 #include "ui/chromeos/accessibility_types.h" | 10 #include "ui/chromeos/accessibility_types.h" |
| 12 | 11 |
| 12 namespace ui { |
| 13 enum AXGesture : int; |
| 14 } |
| 15 |
| 13 namespace ash { | 16 namespace ash { |
| 14 | 17 |
| 15 // A delegate class to control and query accessibility features. | 18 // A delegate class to control and query accessibility features. |
| 16 class ASH_EXPORT AccessibilityDelegate { | 19 class ASH_EXPORT AccessibilityDelegate { |
| 17 public: | 20 public: |
| 18 virtual ~AccessibilityDelegate() {} | 21 virtual ~AccessibilityDelegate() {} |
| 19 | 22 |
| 20 // Invoked to toggle spoken feedback for accessibility | 23 // Invoked to toggle spoken feedback for accessibility |
| 21 virtual void ToggleSpokenFeedback( | 24 virtual void ToggleSpokenFeedback( |
| 22 ui::AccessibilityNotificationVisibility notify) = 0; | 25 ui::AccessibilityNotificationVisibility notify) = 0; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |