OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_COMMON_DEFAULT_ACCESSIBILITY_DELEGATE_H_ | |
6 #define ASH_COMMON_DEFAULT_ACCESSIBILITY_DELEGATE_H_ | |
7 | |
8 #include "ash/ash_export.h" | |
9 #include "ash/common/accessibility_delegate.h" | |
10 #include "ash/common/accessibility_types.h" | |
11 #include "base/macros.h" | |
12 | |
13 namespace ash { | |
14 | |
15 class ASH_EXPORT DefaultAccessibilityDelegate : public AccessibilityDelegate { | |
16 public: | |
17 DefaultAccessibilityDelegate(); | |
18 ~DefaultAccessibilityDelegate() override; | |
19 | |
20 bool IsSpokenFeedbackEnabled() const override; | |
21 void ToggleHighContrast() override; | |
22 bool IsHighContrastEnabled() const override; | |
23 void SetMagnifierEnabled(bool enabled) override; | |
24 void SetMagnifierType(MagnifierType type) override; | |
25 bool IsMagnifierEnabled() const override; | |
26 MagnifierType GetMagnifierType() const override; | |
27 void SetLargeCursorEnabled(bool enabled) override; | |
28 bool IsLargeCursorEnabled() const override; | |
29 void SetAutoclickEnabled(bool enabled) override; | |
30 bool IsAutoclickEnabled() const override; | |
31 void SetVirtualKeyboardEnabled(bool enabled) override; | |
32 bool IsVirtualKeyboardEnabled() const override; | |
33 void SetMonoAudioEnabled(bool enabled) override; | |
34 bool IsMonoAudioEnabled() const override; | |
35 void SetCaretHighlightEnabled(bool enabled) override; | |
36 bool IsCaretHighlightEnabled() const override; | |
37 void SetCursorHighlightEnabled(bool enabled) override; | |
38 bool IsCursorHighlightEnabled() const override; | |
39 void SetFocusHighlightEnabled(bool enabled) override; | |
40 bool IsFocusHighlightEnabled() const override; | |
41 void SetSelectToSpeakEnabled(bool enabled) override; | |
42 bool IsSelectToSpeakEnabled() const override; | |
43 void SetSwitchAccessEnabled(bool enabled) override; | |
44 bool IsSwitchAccessEnabled() const override; | |
45 bool ShouldShowAccessibilityMenu() const override; | |
46 bool IsBrailleDisplayConnected() const override; | |
47 void SilenceSpokenFeedback() const override; | |
48 void ClearFocusHighlight() const override; | |
49 void ToggleSpokenFeedback( | |
50 AccessibilityNotificationVisibility notify) override; | |
51 void SaveScreenMagnifierScale(double scale) override; | |
52 double GetSavedScreenMagnifierScale() override; | |
53 void TriggerAccessibilityAlert(AccessibilityAlert alert) override; | |
54 AccessibilityAlert GetLastAccessibilityAlert() override; | |
55 bool ShouldToggleSpokenFeedbackViaTouch() override; | |
56 void PlaySpokenFeedbackToggleCountdown(int tick_count) override; | |
57 void PlayEarcon(int sound_key) override; | |
58 base::TimeDelta PlayShutdownSound() const override; | |
59 void HandleAccessibilityGesture(ui::AXGesture gesture) override; | |
60 | |
61 private: | |
62 bool spoken_feedback_enabled_ = false; | |
63 bool high_contrast_enabled_ = false; | |
64 bool screen_magnifier_enabled_ = false; | |
65 MagnifierType screen_magnifier_type_ = kDefaultMagnifierType; | |
66 bool large_cursor_enabled_ = false; | |
67 bool autoclick_enabled_ = false; | |
68 bool virtual_keyboard_enabled_ = false; | |
69 bool mono_audio_enabled_ = false; | |
70 bool caret_highlight_enabled_ = false; | |
71 bool cursor_highlight_enabled_ = false; | |
72 bool focus_highligh_enabled_ = false; | |
73 bool select_to_speak_enabled_ = false; | |
74 bool switch_access_enabled_ = false; | |
75 AccessibilityAlert accessibility_alert_ = A11Y_ALERT_NONE; | |
76 DISALLOW_COPY_AND_ASSIGN(DefaultAccessibilityDelegate); | |
77 }; | |
78 | |
79 } // namespace ash | |
80 | |
81 #endif // ASH_COMMON_DEFAULT_ACCESSIBILITY_DELEGATE_H_ | |
OLD | NEW |