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

Side by Side Diff: chrome/browser/chromeos/accessibility/accessibility_manager.h

Issue 2809443002: Make Is*** functions in AccessibilityManager as const member functions. (Closed)
Patch Set: 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 | « no previous file | chrome/browser/chromeos/accessibility/accessibility_manager.cc » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "ash/common/accessibility_types.h" 10 #include "ash/common/accessibility_types.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 // Returns true when the accessibility menu should be shown. 134 // Returns true when the accessibility menu should be shown.
135 bool ShouldShowAccessibilityMenu(); 135 bool ShouldShowAccessibilityMenu();
136 136
137 // Returns true when cursor compositing should be enabled. 137 // Returns true when cursor compositing should be enabled.
138 bool ShouldEnableCursorCompositing(); 138 bool ShouldEnableCursorCompositing();
139 139
140 // Enables or disables the large cursor. 140 // Enables or disables the large cursor.
141 void EnableLargeCursor(bool enabled); 141 void EnableLargeCursor(bool enabled);
142 // Returns true if the large cursor is enabled, or false if not. 142 // Returns true if the large cursor is enabled, or false if not.
143 bool IsLargeCursorEnabled(); 143 bool IsLargeCursorEnabled() const;
144 144
145 // Enables or disable Sticky Keys. 145 // Enables or disable Sticky Keys.
146 void EnableStickyKeys(bool enabled); 146 void EnableStickyKeys(bool enabled);
147 147
148 // Returns true if Incognito mode is allowed, or false if not. 148 // Returns true if Incognito mode is allowed, or false if not.
149 bool IsIncognitoAllowed(); 149 bool IsIncognitoAllowed();
150 150
151 // Returns true if the Sticky Keys is enabled, or false if not. 151 // Returns true if the Sticky Keys is enabled, or false if not.
152 bool IsStickyKeysEnabled(); 152 bool IsStickyKeysEnabled() const;
153 153
154 // Enables or disables spoken feedback. Enabling spoken feedback installs the 154 // Enables or disables spoken feedback. Enabling spoken feedback installs the
155 // ChromeVox component extension. 155 // ChromeVox component extension.
156 void EnableSpokenFeedback(bool enabled, 156 void EnableSpokenFeedback(bool enabled,
157 ash::AccessibilityNotificationVisibility notify); 157 ash::AccessibilityNotificationVisibility notify);
158 158
159 // Returns true if spoken feedback is enabled, or false if not. 159 // Returns true if spoken feedback is enabled, or false if not.
160 bool IsSpokenFeedbackEnabled(); 160 bool IsSpokenFeedbackEnabled() const;
161 161
162 // Toggles whether Chrome OS spoken feedback is on or off. 162 // Toggles whether Chrome OS spoken feedback is on or off.
163 void ToggleSpokenFeedback(ash::AccessibilityNotificationVisibility notify); 163 void ToggleSpokenFeedback(ash::AccessibilityNotificationVisibility notify);
164 164
165 // Enables or disables the high contrast mode for Chrome. 165 // Enables or disables the high contrast mode for Chrome.
166 void EnableHighContrast(bool enabled); 166 void EnableHighContrast(bool enabled);
167 167
168 // Returns true if High Contrast is enabled, or false if not. 168 // Returns true if High Contrast is enabled, or false if not.
169 bool IsHighContrastEnabled(); 169 bool IsHighContrastEnabled() const;
170 170
171 // Enables or disables autoclick. 171 // Enables or disables autoclick.
172 void EnableAutoclick(bool enabled); 172 void EnableAutoclick(bool enabled);
173 173
174 // Returns true if autoclick is enabled. 174 // Returns true if autoclick is enabled.
175 bool IsAutoclickEnabled(); 175 bool IsAutoclickEnabled() const;
176 176
177 // Set the delay for autoclicking after stopping the cursor in milliseconds. 177 // Set the delay for autoclicking after stopping the cursor in milliseconds.
178 void SetAutoclickDelay(int delay_ms); 178 void SetAutoclickDelay(int delay_ms);
179 179
180 // Returns the autoclick delay in milliseconds. 180 // Returns the autoclick delay in milliseconds.
181 int GetAutoclickDelay() const; 181 int GetAutoclickDelay() const;
182 182
183 // Enables or disables the virtual keyboard. 183 // Enables or disables the virtual keyboard.
184 void EnableVirtualKeyboard(bool enabled); 184 void EnableVirtualKeyboard(bool enabled);
185 // Returns true if the virtual keyboard is enabled, otherwise false. 185 // Returns true if the virtual keyboard is enabled, otherwise false.
186 bool IsVirtualKeyboardEnabled(); 186 bool IsVirtualKeyboardEnabled() const;
187 187
188 // Enables or disables mono audio output. 188 // Enables or disables mono audio output.
189 void EnableMonoAudio(bool enabled); 189 void EnableMonoAudio(bool enabled);
190 // Returns true if mono audio output is enabled, otherwise false. 190 // Returns true if mono audio output is enabled, otherwise false.
191 bool IsMonoAudioEnabled(); 191 bool IsMonoAudioEnabled() const;
192 192
193 // Invoked to enable or disable caret highlighting. 193 // Invoked to enable or disable caret highlighting.
194 void SetCaretHighlightEnabled(bool enabled); 194 void SetCaretHighlightEnabled(bool enabled);
195 195
196 // Returns if caret highlighting is enabled. 196 // Returns if caret highlighting is enabled.
197 bool IsCaretHighlightEnabled() const; 197 bool IsCaretHighlightEnabled() const;
198 198
199 // Invoked to enable or disable cursor highlighting. 199 // Invoked to enable or disable cursor highlighting.
200 void SetCursorHighlightEnabled(bool enabled); 200 void SetCursorHighlightEnabled(bool enabled);
201 201
202 // Returns if cursor highlighting is enabled. 202 // Returns if cursor highlighting is enabled.
203 bool IsCursorHighlightEnabled() const; 203 bool IsCursorHighlightEnabled() const;
204 204
205 // Invoked to enable or disable focus highlighting. 205 // Invoked to enable or disable focus highlighting.
206 void SetFocusHighlightEnabled(bool enabled); 206 void SetFocusHighlightEnabled(bool enabled);
207 207
208 // Returns if focus highlighting is enabled. 208 // Returns if focus highlighting is enabled.
209 bool IsFocusHighlightEnabled() const; 209 bool IsFocusHighlightEnabled() const;
210 210
211 // Enables or disables tap dragging. 211 // Enables or disables tap dragging.
212 void EnableTapDragging(bool enabled); 212 void EnableTapDragging(bool enabled);
213 213
214 // Returns true if the tap dragging is enabled, or false if not. 214 // Returns true if the tap dragging is enabled, or false if not.
215 bool IsTapDraggingEnabled(); 215 bool IsTapDraggingEnabled() const;
216 216
217 // Invoked to enable or disable select-to-speak. 217 // Invoked to enable or disable select-to-speak.
218 void SetSelectToSpeakEnabled(bool enabled); 218 void SetSelectToSpeakEnabled(bool enabled);
219 219
220 // Returns if select-to-speak is enabled. 220 // Returns if select-to-speak is enabled.
221 bool IsSelectToSpeakEnabled() const; 221 bool IsSelectToSpeakEnabled() const;
222 222
223 // Invoked to enable or disable switch access. 223 // Invoked to enable or disable switch access.
224 void SetSwitchAccessEnabled(bool enabled); 224 void SetSwitchAccessEnabled(bool enabled);
225 225
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 switch_access_event_handler_; 447 switch_access_event_handler_;
448 448
449 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; 449 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_;
450 450
451 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); 451 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager);
452 }; 452 };
453 453
454 } // namespace chromeos 454 } // namespace chromeos
455 455
456 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ 456 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/accessibility/accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698