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_DEFAULT_ACCESSIBILITY_DELEGATE_H_ | 5 #ifndef ASH_COMMON_DEFAULT_ACCESSIBILITY_DELEGATE_H_ |
6 #define ASH_COMMON_DEFAULT_ACCESSIBILITY_DELEGATE_H_ | 6 #define ASH_COMMON_DEFAULT_ACCESSIBILITY_DELEGATE_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/common/accessibility_delegate.h" | 9 #include "ash/common/accessibility_delegate.h" |
10 #include "ash/common/accessibility_types.h" | 10 #include "ash/common/accessibility_types.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 bool ShouldShowAccessibilityMenu() const override; | 45 bool ShouldShowAccessibilityMenu() const override; |
46 bool IsBrailleDisplayConnected() const override; | 46 bool IsBrailleDisplayConnected() const override; |
47 void SilenceSpokenFeedback() const override; | 47 void SilenceSpokenFeedback() const override; |
48 void ClearFocusHighlight() const override; | 48 void ClearFocusHighlight() const override; |
49 void ToggleSpokenFeedback( | 49 void ToggleSpokenFeedback( |
50 AccessibilityNotificationVisibility notify) override; | 50 AccessibilityNotificationVisibility notify) override; |
51 void SaveScreenMagnifierScale(double scale) override; | 51 void SaveScreenMagnifierScale(double scale) override; |
52 double GetSavedScreenMagnifierScale() override; | 52 double GetSavedScreenMagnifierScale() override; |
53 void TriggerAccessibilityAlert(AccessibilityAlert alert) override; | 53 void TriggerAccessibilityAlert(AccessibilityAlert alert) override; |
54 AccessibilityAlert GetLastAccessibilityAlert() override; | 54 AccessibilityAlert GetLastAccessibilityAlert() override; |
| 55 bool ShouldToggleSpokenFeedbackViaTouch() override; |
| 56 void PlaySpokenFeedbackToggleCountdown(int tick_count) override; |
55 void PlayEarcon(int sound_key) override; | 57 void PlayEarcon(int sound_key) override; |
56 base::TimeDelta PlayShutdownSound() const override; | 58 base::TimeDelta PlayShutdownSound() const override; |
57 void HandleAccessibilityGesture(ui::AXGesture gesture) override; | 59 void HandleAccessibilityGesture(ui::AXGesture gesture) override; |
58 | 60 |
59 private: | 61 private: |
60 bool spoken_feedback_enabled_ = false; | 62 bool spoken_feedback_enabled_ = false; |
61 bool high_contrast_enabled_ = false; | 63 bool high_contrast_enabled_ = false; |
62 bool screen_magnifier_enabled_ = false; | 64 bool screen_magnifier_enabled_ = false; |
63 MagnifierType screen_magnifier_type_ = kDefaultMagnifierType; | 65 MagnifierType screen_magnifier_type_ = kDefaultMagnifierType; |
64 bool large_cursor_enabled_ = false; | 66 bool large_cursor_enabled_ = false; |
65 bool autoclick_enabled_ = false; | 67 bool autoclick_enabled_ = false; |
66 bool virtual_keyboard_enabled_ = false; | 68 bool virtual_keyboard_enabled_ = false; |
67 bool mono_audio_enabled_ = false; | 69 bool mono_audio_enabled_ = false; |
68 bool caret_highlight_enabled_ = false; | 70 bool caret_highlight_enabled_ = false; |
69 bool cursor_highlight_enabled_ = false; | 71 bool cursor_highlight_enabled_ = false; |
70 bool focus_highligh_enabled_ = false; | 72 bool focus_highligh_enabled_ = false; |
71 bool select_to_speak_enabled_ = false; | 73 bool select_to_speak_enabled_ = false; |
72 bool switch_access_enabled_ = false; | 74 bool switch_access_enabled_ = false; |
73 AccessibilityAlert accessibility_alert_ = A11Y_ALERT_NONE; | 75 AccessibilityAlert accessibility_alert_ = A11Y_ALERT_NONE; |
74 DISALLOW_COPY_AND_ASSIGN(DefaultAccessibilityDelegate); | 76 DISALLOW_COPY_AND_ASSIGN(DefaultAccessibilityDelegate); |
75 }; | 77 }; |
76 | 78 |
77 } // namespace ash | 79 } // namespace ash |
78 | 80 |
79 #endif // ASH_COMMON_DEFAULT_ACCESSIBILITY_DELEGATE_H_ | 81 #endif // ASH_COMMON_DEFAULT_ACCESSIBILITY_DELEGATE_H_ |
OLD | NEW |