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

Side by Side Diff: ash/default_accessibility_delegate.cc

Issue 1840913002: A11y setting: mono audio UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delete tray a11y hand icon view Created 4 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/default_accessibility_delegate.h ('k') | ash/shell.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/default_accessibility_delegate.h" 5 #include "ash/default_accessibility_delegate.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 namespace ash { 9 namespace ash {
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 58
59 void DefaultAccessibilityDelegate::SetVirtualKeyboardEnabled(bool enabled) { 59 void DefaultAccessibilityDelegate::SetVirtualKeyboardEnabled(bool enabled) {
60 virtual_keyboard_enabled_ = enabled; 60 virtual_keyboard_enabled_ = enabled;
61 } 61 }
62 62
63 bool DefaultAccessibilityDelegate::IsVirtualKeyboardEnabled() const { 63 bool DefaultAccessibilityDelegate::IsVirtualKeyboardEnabled() const {
64 return virtual_keyboard_enabled_; 64 return virtual_keyboard_enabled_;
65 } 65 }
66 66
67 void DefaultAccessibilityDelegate::SetMonoAudioEnabled(bool enabled) {
68 mono_audio_enabled_ = enabled;
69 }
70
71 bool DefaultAccessibilityDelegate::IsMonoAudioEnabled() const {
72 return mono_audio_enabled_;
73 }
74
67 void DefaultAccessibilityDelegate::SetCaretHighlightEnabled(bool enabled) { 75 void DefaultAccessibilityDelegate::SetCaretHighlightEnabled(bool enabled) {
68 caret_highlight_enabled_ = enabled; 76 caret_highlight_enabled_ = enabled;
69 } 77 }
70 78
71 bool DefaultAccessibilityDelegate::IsCaretHighlightEnabled() const { 79 bool DefaultAccessibilityDelegate::IsCaretHighlightEnabled() const {
72 return caret_highlight_enabled_; 80 return caret_highlight_enabled_;
73 } 81 }
74 82
75 void DefaultAccessibilityDelegate::SetCursorHighlightEnabled(bool enabled) { 83 void DefaultAccessibilityDelegate::SetCursorHighlightEnabled(bool enabled) {
76 cursor_highlight_enabled_ = enabled; 84 cursor_highlight_enabled_ = enabled;
(...skipping 26 matching lines...) Expand all
103 bool DefaultAccessibilityDelegate::IsSwitchAccessEnabled() const { 111 bool DefaultAccessibilityDelegate::IsSwitchAccessEnabled() const {
104 return switch_access_enabled_; 112 return switch_access_enabled_;
105 } 113 }
106 114
107 bool DefaultAccessibilityDelegate::ShouldShowAccessibilityMenu() const { 115 bool DefaultAccessibilityDelegate::ShouldShowAccessibilityMenu() const {
108 return spoken_feedback_enabled_ || 116 return spoken_feedback_enabled_ ||
109 high_contrast_enabled_ || 117 high_contrast_enabled_ ||
110 screen_magnifier_enabled_ || 118 screen_magnifier_enabled_ ||
111 large_cursor_enabled_ || 119 large_cursor_enabled_ ||
112 autoclick_enabled_ || 120 autoclick_enabled_ ||
113 virtual_keyboard_enabled_; 121 virtual_keyboard_enabled_ ||
122 mono_audio_enabled_;
114 } 123 }
115 124
116 bool DefaultAccessibilityDelegate::IsBrailleDisplayConnected() const { 125 bool DefaultAccessibilityDelegate::IsBrailleDisplayConnected() const {
117 return false; 126 return false;
118 } 127 }
119 128
120 void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const { 129 void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const {
121 } 130 }
122 131
123 void DefaultAccessibilityDelegate::ToggleSpokenFeedback( 132 void DefaultAccessibilityDelegate::ToggleSpokenFeedback(
(...skipping 19 matching lines...) Expand all
143 } 152 }
144 153
145 void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) { 154 void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) {
146 } 155 }
147 156
148 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const { 157 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const {
149 return base::TimeDelta(); 158 return base::TimeDelta();
150 } 159 }
151 160
152 } // namespace ash 161 } // namespace ash
OLDNEW
« no previous file with comments | « ash/default_accessibility_delegate.h ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698