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/chromeos/accessibility_types.h" | 10 #include "ui/chromeos/accessibility_types.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // Returns if autoclick is enabled or not. | 53 // Returns if autoclick is enabled or not. |
54 virtual bool IsAutoclickEnabled() const = 0; | 54 virtual bool IsAutoclickEnabled() const = 0; |
55 | 55 |
56 // Invoked to enable or disable the a11y on-screen keyboard. | 56 // Invoked to enable or disable the a11y on-screen keyboard. |
57 virtual void SetVirtualKeyboardEnabled(bool enabled) = 0; | 57 virtual void SetVirtualKeyboardEnabled(bool enabled) = 0; |
58 | 58 |
59 // Returns if the a11y virtual keyboard is enabled. | 59 // Returns if the a11y virtual keyboard is enabled. |
60 virtual bool IsVirtualKeyboardEnabled() const = 0; | 60 virtual bool IsVirtualKeyboardEnabled() const = 0; |
61 | 61 |
| 62 // Invoked to enable or disable caret highlighting. |
| 63 virtual void SetCaretHighlightEnabled(bool enabled) = 0; |
| 64 |
| 65 // Returns if caret highlighting is enabled. |
| 66 virtual bool IsCaretHighlightEnabled() const = 0; |
| 67 |
| 68 // Invoked to enable or disable cursor highlighting. |
| 69 virtual void SetCursorHighlightEnabled(bool enabled) = 0; |
| 70 |
| 71 // Returns if cursor highlighting is enabled. |
| 72 virtual bool IsCursorHighlightEnabled() const = 0; |
| 73 |
| 74 // Invoked to enable or disable focus highlighting. |
| 75 virtual void SetFocusHighlightEnabled(bool enabled) = 0; |
| 76 |
| 77 // Returns if focus highlighting is enabled. |
| 78 virtual bool IsFocusHighlightEnabled() const = 0; |
| 79 |
| 80 // Invoked to enable or disable select-to-speak. |
| 81 virtual void SetSelectToSpeakEnabled(bool enabled) = 0; |
| 82 |
| 83 // Returns if select-to-speak is enabled. |
| 84 virtual bool IsSelectToSpeakEnabled() const = 0; |
| 85 |
| 86 // Invoked to enable or disable switch access. |
| 87 virtual void SetSwitchAccessEnabled(bool enabled) = 0; |
| 88 |
| 89 // Returns if switch access is enabled. |
| 90 virtual bool IsSwitchAccessEnabled() const = 0; |
| 91 |
62 // Returns true when the accessibility menu should be shown. | 92 // Returns true when the accessibility menu should be shown. |
63 virtual bool ShouldShowAccessibilityMenu() const = 0; | 93 virtual bool ShouldShowAccessibilityMenu() const = 0; |
64 | 94 |
65 // Returns true if a braille display is connected to the system. | 95 // Returns true if a braille display is connected to the system. |
66 virtual bool IsBrailleDisplayConnected() const = 0; | 96 virtual bool IsBrailleDisplayConnected() const = 0; |
67 | 97 |
68 // Cancel all current and queued speech immediately. | 98 // Cancel all current and queued speech immediately. |
69 virtual void SilenceSpokenFeedback() const = 0; | 99 virtual void SilenceSpokenFeedback() const = 0; |
70 | 100 |
71 // Saves the zoom scale of the full screen magnifier. | 101 // Saves the zoom scale of the full screen magnifier. |
(...skipping 14 matching lines...) Expand all Loading... |
86 // chromeos/audio/chromeos_sounds.h. | 116 // chromeos/audio/chromeos_sounds.h. |
87 virtual void PlayEarcon(int sound_key) = 0; | 117 virtual void PlayEarcon(int sound_key) = 0; |
88 | 118 |
89 // Initiates play of shutdown sound and returns it's duration. | 119 // Initiates play of shutdown sound and returns it's duration. |
90 virtual base::TimeDelta PlayShutdownSound() const = 0; | 120 virtual base::TimeDelta PlayShutdownSound() const = 0; |
91 }; | 121 }; |
92 | 122 |
93 } // namespace ash | 123 } // namespace ash |
94 | 124 |
95 #endif // ASH_ACCESSIBILITY_DELEGATE_H_ | 125 #endif // ASH_ACCESSIBILITY_DELEGATE_H_ |
OLD | NEW |