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/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 |
11 DefaultAccessibilityDelegate::DefaultAccessibilityDelegate() {} | 11 DefaultAccessibilityDelegate::DefaultAccessibilityDelegate() {} |
12 | 12 |
13 DefaultAccessibilityDelegate::~DefaultAccessibilityDelegate() {} | 13 DefaultAccessibilityDelegate::~DefaultAccessibilityDelegate() {} |
14 | 14 |
15 bool DefaultAccessibilityDelegate::IsSpokenFeedbackEnabled() const { | 15 bool DefaultAccessibilityDelegate::IsSpokenFeedbackEnabled() const { |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 void DefaultAccessibilityDelegate::SetSwitchAccessEnabled(bool enabled) { | 107 void DefaultAccessibilityDelegate::SetSwitchAccessEnabled(bool enabled) { |
108 switch_access_enabled_ = enabled; | 108 switch_access_enabled_ = enabled; |
109 } | 109 } |
110 | 110 |
111 bool DefaultAccessibilityDelegate::IsSwitchAccessEnabled() const { | 111 bool DefaultAccessibilityDelegate::IsSwitchAccessEnabled() const { |
112 return switch_access_enabled_; | 112 return switch_access_enabled_; |
113 } | 113 } |
114 | 114 |
115 bool DefaultAccessibilityDelegate::ShouldShowAccessibilityMenu() const { | 115 bool DefaultAccessibilityDelegate::ShouldShowAccessibilityMenu() const { |
116 return spoken_feedback_enabled_ || | 116 return spoken_feedback_enabled_ || high_contrast_enabled_ || |
117 high_contrast_enabled_ || | 117 screen_magnifier_enabled_ || large_cursor_enabled_ || |
118 screen_magnifier_enabled_ || | 118 autoclick_enabled_ || virtual_keyboard_enabled_ || mono_audio_enabled_; |
119 large_cursor_enabled_ || | |
120 autoclick_enabled_ || | |
121 virtual_keyboard_enabled_ || | |
122 mono_audio_enabled_; | |
123 } | 119 } |
124 | 120 |
125 bool DefaultAccessibilityDelegate::IsBrailleDisplayConnected() const { | 121 bool DefaultAccessibilityDelegate::IsBrailleDisplayConnected() const { |
126 return false; | 122 return false; |
127 } | 123 } |
128 | 124 |
129 void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const { | 125 void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const {} |
130 } | |
131 | 126 |
132 void DefaultAccessibilityDelegate::ToggleSpokenFeedback( | 127 void DefaultAccessibilityDelegate::ToggleSpokenFeedback( |
133 ui::AccessibilityNotificationVisibility notify) { | 128 ui::AccessibilityNotificationVisibility notify) { |
134 spoken_feedback_enabled_ = !spoken_feedback_enabled_; | 129 spoken_feedback_enabled_ = !spoken_feedback_enabled_; |
135 } | 130 } |
136 | 131 |
137 void DefaultAccessibilityDelegate::SaveScreenMagnifierScale(double scale) { | 132 void DefaultAccessibilityDelegate::SaveScreenMagnifierScale(double scale) {} |
138 } | |
139 | 133 |
140 double DefaultAccessibilityDelegate::GetSavedScreenMagnifierScale() { | 134 double DefaultAccessibilityDelegate::GetSavedScreenMagnifierScale() { |
141 return std::numeric_limits<double>::min(); | 135 return std::numeric_limits<double>::min(); |
142 } | 136 } |
143 | 137 |
144 void DefaultAccessibilityDelegate::TriggerAccessibilityAlert( | 138 void DefaultAccessibilityDelegate::TriggerAccessibilityAlert( |
145 ui::AccessibilityAlert alert) { | 139 ui::AccessibilityAlert alert) { |
146 accessibility_alert_ = alert; | 140 accessibility_alert_ = alert; |
147 } | 141 } |
148 | 142 |
149 ui::AccessibilityAlert | 143 ui::AccessibilityAlert |
150 DefaultAccessibilityDelegate::GetLastAccessibilityAlert() { | 144 DefaultAccessibilityDelegate::GetLastAccessibilityAlert() { |
151 return accessibility_alert_; | 145 return accessibility_alert_; |
152 } | 146 } |
153 | 147 |
154 void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) { | 148 void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) {} |
155 } | |
156 | 149 |
157 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const { | 150 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const { |
158 return base::TimeDelta(); | 151 return base::TimeDelta(); |
159 } | 152 } |
160 | 153 |
161 void DefaultAccessibilityDelegate::HandleAccessibilityGesture( | 154 void DefaultAccessibilityDelegate::HandleAccessibilityGesture( |
162 ui::AXGesture gesture) {} | 155 ui::AXGesture gesture) {} |
163 | 156 |
164 } // namespace ash | 157 } // namespace ash |
OLD | NEW |