Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Side by Side Diff: ash/common/default_accessibility_delegate.cc

Issue 2802783002: List all a11y features in a11y detailed view in ash system menu (Closed)
Patch Set: Address the comments on PS#1 Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/default_accessibility_delegate.h ('k') | ash/common/metrics/user_metrics_action.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 90
91 void DefaultAccessibilityDelegate::SetFocusHighlightEnabled(bool enabled) { 91 void DefaultAccessibilityDelegate::SetFocusHighlightEnabled(bool enabled) {
92 focus_highligh_enabled_ = enabled; 92 focus_highligh_enabled_ = enabled;
93 } 93 }
94 94
95 bool DefaultAccessibilityDelegate::IsFocusHighlightEnabled() const { 95 bool DefaultAccessibilityDelegate::IsFocusHighlightEnabled() const {
96 return focus_highligh_enabled_; 96 return focus_highligh_enabled_;
97 } 97 }
98 98
99 void DefaultAccessibilityDelegate::SetStickyKeysEnabled(bool enabled) {
100 sticky_keys_enabled_ = enabled;
101 }
102
103 bool DefaultAccessibilityDelegate::IsStickyKeysEnabled() const {
104 return sticky_keys_enabled_;
105 }
106
107 void DefaultAccessibilityDelegate::SetTapDraggingEnabled(bool enabled) {
108 tap_dragging_enabled_ = enabled;
109 }
110
111 bool DefaultAccessibilityDelegate::IsTapDraggingEnabled() const {
112 return tap_dragging_enabled_;
113 }
114
99 void DefaultAccessibilityDelegate::SetSelectToSpeakEnabled(bool enabled) { 115 void DefaultAccessibilityDelegate::SetSelectToSpeakEnabled(bool enabled) {
100 select_to_speak_enabled_ = enabled; 116 select_to_speak_enabled_ = enabled;
101 } 117 }
102 118
103 bool DefaultAccessibilityDelegate::IsSelectToSpeakEnabled() const { 119 bool DefaultAccessibilityDelegate::IsSelectToSpeakEnabled() const {
104 return select_to_speak_enabled_; 120 return select_to_speak_enabled_;
105 } 121 }
106 122
107 void DefaultAccessibilityDelegate::SetSwitchAccessEnabled(bool enabled) { 123 void DefaultAccessibilityDelegate::SetSwitchAccessEnabled(bool enabled) {
108 switch_access_enabled_ = enabled; 124 switch_access_enabled_ = enabled;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) {} 172 void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) {}
157 173
158 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const { 174 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const {
159 return base::TimeDelta(); 175 return base::TimeDelta();
160 } 176 }
161 177
162 void DefaultAccessibilityDelegate::HandleAccessibilityGesture( 178 void DefaultAccessibilityDelegate::HandleAccessibilityGesture(
163 ui::AXGesture gesture) {} 179 ui::AXGesture gesture) {}
164 180
165 } // namespace ash 181 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/default_accessibility_delegate.h ('k') | ash/common/metrics/user_metrics_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698