OLD | NEW |
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/session/session_state_observer.h" | 10 #include "ash/session/session_state_observer.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void SetAutoclickDelay(int delay_ms); | 158 void SetAutoclickDelay(int delay_ms); |
159 | 159 |
160 // Returns the autoclick delay in milliseconds. | 160 // Returns the autoclick delay in milliseconds. |
161 int GetAutoclickDelay() const; | 161 int GetAutoclickDelay() const; |
162 | 162 |
163 // Enables or disables the virtual keyboard. | 163 // Enables or disables the virtual keyboard. |
164 void EnableVirtualKeyboard(bool enabled); | 164 void EnableVirtualKeyboard(bool enabled); |
165 // Returns true if the virtual keyboard is enabled, otherwise false. | 165 // Returns true if the virtual keyboard is enabled, otherwise false. |
166 bool IsVirtualKeyboardEnabled(); | 166 bool IsVirtualKeyboardEnabled(); |
167 | 167 |
| 168 // Invoked to enable or disable caret highlighting. |
| 169 void SetCaretHighlightEnabled(bool enabled); |
| 170 |
| 171 // Returns if caret highlighting is enabled. |
| 172 bool IsCaretHighlightEnabled() const; |
| 173 |
| 174 // Invoked to enable or disable cursor highlighting. |
| 175 void SetCursorHighlightEnabled(bool enabled); |
| 176 |
| 177 // Returns if cursor highlighting is enabled. |
| 178 bool IsCursorHighlightEnabled() const; |
| 179 |
| 180 // Invoked to enable or disable focus highlighting. |
| 181 void SetFocusHighlightEnabled(bool enabled); |
| 182 |
| 183 // Returns if focus highlighting is enabled. |
| 184 bool IsFocusHighlightEnabled() const; |
| 185 |
| 186 // Invoked to enable or disable select-to-speak. |
| 187 void SetSelectToSpeakEnabled(bool enabled); |
| 188 |
| 189 // Returns if select-to-speak is enabled. |
| 190 bool IsSelectToSpeakEnabled() const; |
| 191 |
| 192 // Invoked to enable or disable switch access. |
| 193 void SetSwitchAccessEnabled(bool enabled); |
| 194 |
| 195 // Returns if switch access is enabled. |
| 196 bool IsSwitchAccessEnabled() const; |
| 197 |
168 // Returns true if a braille display is connected to the system, otherwise | 198 // Returns true if a braille display is connected to the system, otherwise |
169 // false. | 199 // false. |
170 bool IsBrailleDisplayConnected() const; | 200 bool IsBrailleDisplayConnected() const; |
171 | 201 |
172 // SessionStateObserver overrides: | 202 // SessionStateObserver overrides: |
173 void ActiveUserChanged(const AccountId& account_id) override; | 203 void ActiveUserChanged(const AccountId& account_id) override; |
174 | 204 |
175 // ShellObserver overrides: | 205 // ShellObserver overrides: |
176 void OnAppTerminating() override; | 206 void OnAppTerminating() override; |
177 | 207 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 void PostLoadChromeVox(Profile* profile); | 269 void PostLoadChromeVox(Profile* profile); |
240 void PostUnloadChromeVox(Profile* profile); | 270 void PostUnloadChromeVox(Profile* profile); |
241 | 271 |
242 void UpdateLargeCursorFromPref(); | 272 void UpdateLargeCursorFromPref(); |
243 void UpdateStickyKeysFromPref(); | 273 void UpdateStickyKeysFromPref(); |
244 void UpdateSpokenFeedbackFromPref(); | 274 void UpdateSpokenFeedbackFromPref(); |
245 void UpdateHighContrastFromPref(); | 275 void UpdateHighContrastFromPref(); |
246 void UpdateAutoclickFromPref(); | 276 void UpdateAutoclickFromPref(); |
247 void UpdateAutoclickDelayFromPref(); | 277 void UpdateAutoclickDelayFromPref(); |
248 void UpdateVirtualKeyboardFromPref(); | 278 void UpdateVirtualKeyboardFromPref(); |
| 279 void UpdateCaretHighlightFromPref(); |
| 280 void UpdateCursorHighlightFromPref(); |
| 281 void UpdateFocusHighlightFromPref(); |
| 282 void UpdateSelectToSpeakFromPref(); |
| 283 void UpdateSwitchAccessFromPref(); |
249 | 284 |
250 void CheckBrailleState(); | 285 void CheckBrailleState(); |
251 void ReceiveBrailleDisplayState( | 286 void ReceiveBrailleDisplayState( |
252 scoped_ptr<extensions::api::braille_display_private::DisplayState> state); | 287 scoped_ptr<extensions::api::braille_display_private::DisplayState> state); |
253 void UpdateBrailleImeState(); | 288 void UpdateBrailleImeState(); |
254 | 289 |
255 void SetProfile(Profile* profile); | 290 void SetProfile(Profile* profile); |
256 | 291 |
257 void UpdateChromeOSAccessibilityHistograms(); | 292 void UpdateChromeOSAccessibilityHistograms(); |
258 | 293 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; | 328 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; |
294 scoped_ptr<PrefChangeRegistrar> local_state_pref_change_registrar_; | 329 scoped_ptr<PrefChangeRegistrar> local_state_pref_change_registrar_; |
295 scoped_ptr<ash::ScopedSessionStateObserver> session_state_observer_; | 330 scoped_ptr<ash::ScopedSessionStateObserver> session_state_observer_; |
296 | 331 |
297 PrefHandler large_cursor_pref_handler_; | 332 PrefHandler large_cursor_pref_handler_; |
298 PrefHandler spoken_feedback_pref_handler_; | 333 PrefHandler spoken_feedback_pref_handler_; |
299 PrefHandler high_contrast_pref_handler_; | 334 PrefHandler high_contrast_pref_handler_; |
300 PrefHandler autoclick_pref_handler_; | 335 PrefHandler autoclick_pref_handler_; |
301 PrefHandler autoclick_delay_pref_handler_; | 336 PrefHandler autoclick_delay_pref_handler_; |
302 PrefHandler virtual_keyboard_pref_handler_; | 337 PrefHandler virtual_keyboard_pref_handler_; |
| 338 PrefHandler caret_highlight_pref_handler_; |
| 339 PrefHandler cursor_highlight_pref_handler_; |
| 340 PrefHandler focus_highlight_pref_handler_; |
| 341 PrefHandler select_to_speak_pref_handler_; |
| 342 PrefHandler switch_access_pref_handler_; |
303 | 343 |
304 bool large_cursor_enabled_; | 344 bool large_cursor_enabled_; |
305 bool sticky_keys_enabled_; | 345 bool sticky_keys_enabled_; |
306 bool spoken_feedback_enabled_; | 346 bool spoken_feedback_enabled_; |
307 bool high_contrast_enabled_; | 347 bool high_contrast_enabled_; |
308 bool autoclick_enabled_; | 348 bool autoclick_enabled_; |
309 int autoclick_delay_ms_; | 349 int autoclick_delay_ms_; |
310 bool virtual_keyboard_enabled_; | 350 bool virtual_keyboard_enabled_; |
| 351 bool caret_highlight_enabled_; |
| 352 bool cursor_highlight_enabled_; |
| 353 bool focus_highlight_enabled_; |
| 354 bool select_to_speak_enabled_; |
| 355 bool switch_access_enabled_; |
311 | 356 |
312 ui::AccessibilityNotificationVisibility spoken_feedback_notification_; | 357 ui::AccessibilityNotificationVisibility spoken_feedback_notification_; |
313 | 358 |
314 bool should_speak_chrome_vox_announcements_on_user_screen_; | 359 bool should_speak_chrome_vox_announcements_on_user_screen_; |
315 | 360 |
316 bool system_sounds_enabled_; | 361 bool system_sounds_enabled_; |
317 | 362 |
318 AccessibilityStatusCallbackList callback_list_; | 363 AccessibilityStatusCallbackList callback_list_; |
319 | 364 |
320 bool braille_display_connected_; | 365 bool braille_display_connected_; |
(...skipping 14 matching lines...) Expand all Loading... |
335 extension_registry_observer_; | 380 extension_registry_observer_; |
336 | 381 |
337 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; | 382 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; |
338 | 383 |
339 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 384 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
340 }; | 385 }; |
341 | 386 |
342 } // namespace chromeos | 387 } // namespace chromeos |
343 | 388 |
344 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 389 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |