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 #include "ash/common/default_accessibility_delegate.h" | 5 #include "ash/common/default_accessibility_delegate.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 namespace ash { | 9 namespace ash { |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 } | 21 } |
22 | 22 |
23 bool DefaultAccessibilityDelegate::IsHighContrastEnabled() const { | 23 bool DefaultAccessibilityDelegate::IsHighContrastEnabled() const { |
24 return high_contrast_enabled_; | 24 return high_contrast_enabled_; |
25 } | 25 } |
26 | 26 |
27 void DefaultAccessibilityDelegate::SetMagnifierEnabled(bool enabled) { | 27 void DefaultAccessibilityDelegate::SetMagnifierEnabled(bool enabled) { |
28 screen_magnifier_enabled_ = enabled; | 28 screen_magnifier_enabled_ = enabled; |
29 } | 29 } |
30 | 30 |
31 void DefaultAccessibilityDelegate::SetMagnifierType(ui::MagnifierType type) { | 31 void DefaultAccessibilityDelegate::SetMagnifierType(MagnifierType type) { |
32 screen_magnifier_type_ = type; | 32 screen_magnifier_type_ = type; |
33 } | 33 } |
34 | 34 |
35 bool DefaultAccessibilityDelegate::IsMagnifierEnabled() const { | 35 bool DefaultAccessibilityDelegate::IsMagnifierEnabled() const { |
36 return screen_magnifier_enabled_; | 36 return screen_magnifier_enabled_; |
37 } | 37 } |
38 | 38 |
39 ui::MagnifierType DefaultAccessibilityDelegate::GetMagnifierType() const { | 39 MagnifierType DefaultAccessibilityDelegate::GetMagnifierType() const { |
40 return screen_magnifier_type_; | 40 return screen_magnifier_type_; |
41 } | 41 } |
42 | 42 |
43 void DefaultAccessibilityDelegate::SetLargeCursorEnabled(bool enabled) { | 43 void DefaultAccessibilityDelegate::SetLargeCursorEnabled(bool enabled) { |
44 large_cursor_enabled_ = enabled; | 44 large_cursor_enabled_ = enabled; |
45 } | 45 } |
46 | 46 |
47 bool DefaultAccessibilityDelegate::IsLargeCursorEnabled() const { | 47 bool DefaultAccessibilityDelegate::IsLargeCursorEnabled() const { |
48 return large_cursor_enabled_; | 48 return large_cursor_enabled_; |
49 } | 49 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 autoclick_enabled_ || virtual_keyboard_enabled_ || mono_audio_enabled_; | 118 autoclick_enabled_ || virtual_keyboard_enabled_ || mono_audio_enabled_; |
119 } | 119 } |
120 | 120 |
121 bool DefaultAccessibilityDelegate::IsBrailleDisplayConnected() const { | 121 bool DefaultAccessibilityDelegate::IsBrailleDisplayConnected() const { |
122 return false; | 122 return false; |
123 } | 123 } |
124 | 124 |
125 void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const {} | 125 void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const {} |
126 | 126 |
127 void DefaultAccessibilityDelegate::ToggleSpokenFeedback( | 127 void DefaultAccessibilityDelegate::ToggleSpokenFeedback( |
128 ui::AccessibilityNotificationVisibility notify) { | 128 AccessibilityNotificationVisibility notify) { |
129 spoken_feedback_enabled_ = !spoken_feedback_enabled_; | 129 spoken_feedback_enabled_ = !spoken_feedback_enabled_; |
130 } | 130 } |
131 | 131 |
132 void DefaultAccessibilityDelegate::SaveScreenMagnifierScale(double scale) {} | 132 void DefaultAccessibilityDelegate::SaveScreenMagnifierScale(double scale) {} |
133 | 133 |
134 double DefaultAccessibilityDelegate::GetSavedScreenMagnifierScale() { | 134 double DefaultAccessibilityDelegate::GetSavedScreenMagnifierScale() { |
135 return std::numeric_limits<double>::min(); | 135 return std::numeric_limits<double>::min(); |
136 } | 136 } |
137 | 137 |
138 void DefaultAccessibilityDelegate::TriggerAccessibilityAlert( | 138 void DefaultAccessibilityDelegate::TriggerAccessibilityAlert( |
139 ui::AccessibilityAlert alert) { | 139 AccessibilityAlert alert) { |
140 accessibility_alert_ = alert; | 140 accessibility_alert_ = alert; |
141 } | 141 } |
142 | 142 |
143 ui::AccessibilityAlert | 143 AccessibilityAlert DefaultAccessibilityDelegate::GetLastAccessibilityAlert() { |
144 DefaultAccessibilityDelegate::GetLastAccessibilityAlert() { | |
145 return accessibility_alert_; | 144 return accessibility_alert_; |
146 } | 145 } |
147 | 146 |
148 void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) {} | 147 void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) {} |
149 | 148 |
150 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const { | 149 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const { |
151 return base::TimeDelta(); | 150 return base::TimeDelta(); |
152 } | 151 } |
153 | 152 |
154 void DefaultAccessibilityDelegate::HandleAccessibilityGesture( | 153 void DefaultAccessibilityDelegate::HandleAccessibilityGesture( |
155 ui::AXGesture gesture) {} | 154 ui::AXGesture gesture) {} |
156 | 155 |
157 } // namespace ash | 156 } // namespace ash |
OLD | NEW |