| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 class AccessibilityHighlightManager; | 37 class AccessibilityHighlightManager; |
| 38 | 38 |
| 39 enum AccessibilityNotificationType { | 39 enum AccessibilityNotificationType { |
| 40 ACCESSIBILITY_MANAGER_SHUTDOWN, | 40 ACCESSIBILITY_MANAGER_SHUTDOWN, |
| 41 ACCESSIBILITY_TOGGLE_HIGH_CONTRAST_MODE, | 41 ACCESSIBILITY_TOGGLE_HIGH_CONTRAST_MODE, |
| 42 ACCESSIBILITY_TOGGLE_LARGE_CURSOR, | 42 ACCESSIBILITY_TOGGLE_LARGE_CURSOR, |
| 43 ACCESSIBILITY_TOGGLE_SCREEN_MAGNIFIER, | 43 ACCESSIBILITY_TOGGLE_SCREEN_MAGNIFIER, |
| 44 ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK, | 44 ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK, |
| 45 ACCESSIBILITY_TOGGLE_VIRTUAL_KEYBOARD, | 45 ACCESSIBILITY_TOGGLE_VIRTUAL_KEYBOARD, |
| 46 ACCESSIBILITY_TOGGLE_MONO_AUDIO, |
| 46 ACCESSIBILITY_BRAILLE_DISPLAY_CONNECTION_STATE_CHANGED | 47 ACCESSIBILITY_BRAILLE_DISPLAY_CONNECTION_STATE_CHANGED |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 struct AccessibilityStatusEventDetails { | 50 struct AccessibilityStatusEventDetails { |
| 50 AccessibilityStatusEventDetails( | 51 AccessibilityStatusEventDetails( |
| 51 AccessibilityNotificationType notification_type, | 52 AccessibilityNotificationType notification_type, |
| 52 bool enabled, | 53 bool enabled, |
| 53 ui::AccessibilityNotificationVisibility notify); | 54 ui::AccessibilityNotificationVisibility notify); |
| 54 | 55 |
| 55 AccessibilityStatusEventDetails( | 56 AccessibilityStatusEventDetails( |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 void SetAutoclickDelay(int delay_ms); | 161 void SetAutoclickDelay(int delay_ms); |
| 161 | 162 |
| 162 // Returns the autoclick delay in milliseconds. | 163 // Returns the autoclick delay in milliseconds. |
| 163 int GetAutoclickDelay() const; | 164 int GetAutoclickDelay() const; |
| 164 | 165 |
| 165 // Enables or disables the virtual keyboard. | 166 // Enables or disables the virtual keyboard. |
| 166 void EnableVirtualKeyboard(bool enabled); | 167 void EnableVirtualKeyboard(bool enabled); |
| 167 // Returns true if the virtual keyboard is enabled, otherwise false. | 168 // Returns true if the virtual keyboard is enabled, otherwise false. |
| 168 bool IsVirtualKeyboardEnabled(); | 169 bool IsVirtualKeyboardEnabled(); |
| 169 | 170 |
| 171 // Enables or disables mono audio output. |
| 172 void EnableMonoAudio(bool enabled); |
| 173 // Returns true if mono audio output is enabled, otherwise false. |
| 174 bool IsMonoAudioEnabled(); |
| 175 |
| 170 // Invoked to enable or disable caret highlighting. | 176 // Invoked to enable or disable caret highlighting. |
| 171 void SetCaretHighlightEnabled(bool enabled); | 177 void SetCaretHighlightEnabled(bool enabled); |
| 172 | 178 |
| 173 // Returns if caret highlighting is enabled. | 179 // Returns if caret highlighting is enabled. |
| 174 bool IsCaretHighlightEnabled() const; | 180 bool IsCaretHighlightEnabled() const; |
| 175 | 181 |
| 176 // Invoked to enable or disable cursor highlighting. | 182 // Invoked to enable or disable cursor highlighting. |
| 177 void SetCursorHighlightEnabled(bool enabled); | 183 void SetCursorHighlightEnabled(bool enabled); |
| 178 | 184 |
| 179 // Returns if cursor highlighting is enabled. | 185 // Returns if cursor highlighting is enabled. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 void PostLoadChromeVox(Profile* profile); | 277 void PostLoadChromeVox(Profile* profile); |
| 272 void PostUnloadChromeVox(Profile* profile); | 278 void PostUnloadChromeVox(Profile* profile); |
| 273 | 279 |
| 274 void UpdateLargeCursorFromPref(); | 280 void UpdateLargeCursorFromPref(); |
| 275 void UpdateStickyKeysFromPref(); | 281 void UpdateStickyKeysFromPref(); |
| 276 void UpdateSpokenFeedbackFromPref(); | 282 void UpdateSpokenFeedbackFromPref(); |
| 277 void UpdateHighContrastFromPref(); | 283 void UpdateHighContrastFromPref(); |
| 278 void UpdateAutoclickFromPref(); | 284 void UpdateAutoclickFromPref(); |
| 279 void UpdateAutoclickDelayFromPref(); | 285 void UpdateAutoclickDelayFromPref(); |
| 280 void UpdateVirtualKeyboardFromPref(); | 286 void UpdateVirtualKeyboardFromPref(); |
| 287 void UpdateMonoAudioFromPref(); |
| 281 void UpdateCaretHighlightFromPref(); | 288 void UpdateCaretHighlightFromPref(); |
| 282 void UpdateCursorHighlightFromPref(); | 289 void UpdateCursorHighlightFromPref(); |
| 283 void UpdateFocusHighlightFromPref(); | 290 void UpdateFocusHighlightFromPref(); |
| 284 void UpdateSelectToSpeakFromPref(); | 291 void UpdateSelectToSpeakFromPref(); |
| 285 void UpdateSwitchAccessFromPref(); | 292 void UpdateSwitchAccessFromPref(); |
| 286 void UpdateAccessibilityHighlightingFromPrefs(); | 293 void UpdateAccessibilityHighlightingFromPrefs(); |
| 287 | 294 |
| 288 void CheckBrailleState(); | 295 void CheckBrailleState(); |
| 289 void ReceiveBrailleDisplayState( | 296 void ReceiveBrailleDisplayState( |
| 290 scoped_ptr<extensions::api::braille_display_private::DisplayState> state); | 297 scoped_ptr<extensions::api::braille_display_private::DisplayState> state); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; | 338 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; |
| 332 scoped_ptr<PrefChangeRegistrar> local_state_pref_change_registrar_; | 339 scoped_ptr<PrefChangeRegistrar> local_state_pref_change_registrar_; |
| 333 scoped_ptr<ash::ScopedSessionStateObserver> session_state_observer_; | 340 scoped_ptr<ash::ScopedSessionStateObserver> session_state_observer_; |
| 334 | 341 |
| 335 PrefHandler large_cursor_pref_handler_; | 342 PrefHandler large_cursor_pref_handler_; |
| 336 PrefHandler spoken_feedback_pref_handler_; | 343 PrefHandler spoken_feedback_pref_handler_; |
| 337 PrefHandler high_contrast_pref_handler_; | 344 PrefHandler high_contrast_pref_handler_; |
| 338 PrefHandler autoclick_pref_handler_; | 345 PrefHandler autoclick_pref_handler_; |
| 339 PrefHandler autoclick_delay_pref_handler_; | 346 PrefHandler autoclick_delay_pref_handler_; |
| 340 PrefHandler virtual_keyboard_pref_handler_; | 347 PrefHandler virtual_keyboard_pref_handler_; |
| 348 PrefHandler mono_audio_pref_handler_; |
| 341 PrefHandler caret_highlight_pref_handler_; | 349 PrefHandler caret_highlight_pref_handler_; |
| 342 PrefHandler cursor_highlight_pref_handler_; | 350 PrefHandler cursor_highlight_pref_handler_; |
| 343 PrefHandler focus_highlight_pref_handler_; | 351 PrefHandler focus_highlight_pref_handler_; |
| 344 PrefHandler select_to_speak_pref_handler_; | 352 PrefHandler select_to_speak_pref_handler_; |
| 345 PrefHandler switch_access_pref_handler_; | 353 PrefHandler switch_access_pref_handler_; |
| 346 | 354 |
| 347 bool large_cursor_enabled_; | 355 bool large_cursor_enabled_; |
| 348 bool sticky_keys_enabled_; | 356 bool sticky_keys_enabled_; |
| 349 bool spoken_feedback_enabled_; | 357 bool spoken_feedback_enabled_; |
| 350 bool high_contrast_enabled_; | 358 bool high_contrast_enabled_; |
| 351 bool autoclick_enabled_; | 359 bool autoclick_enabled_; |
| 352 int autoclick_delay_ms_; | 360 int autoclick_delay_ms_; |
| 353 bool virtual_keyboard_enabled_; | 361 bool virtual_keyboard_enabled_; |
| 362 bool mono_audio_enabled_; |
| 354 bool caret_highlight_enabled_; | 363 bool caret_highlight_enabled_; |
| 355 bool cursor_highlight_enabled_; | 364 bool cursor_highlight_enabled_; |
| 356 bool focus_highlight_enabled_; | 365 bool focus_highlight_enabled_; |
| 357 bool select_to_speak_enabled_; | 366 bool select_to_speak_enabled_; |
| 358 bool switch_access_enabled_; | 367 bool switch_access_enabled_; |
| 359 | 368 |
| 360 ui::AccessibilityNotificationVisibility spoken_feedback_notification_; | 369 ui::AccessibilityNotificationVisibility spoken_feedback_notification_; |
| 361 | 370 |
| 362 bool should_speak_chrome_vox_announcements_on_user_screen_; | 371 bool should_speak_chrome_vox_announcements_on_user_screen_; |
| 363 | 372 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 385 scoped_ptr<AccessibilityHighlightManager> accessibility_highlight_manager_; | 394 scoped_ptr<AccessibilityHighlightManager> accessibility_highlight_manager_; |
| 386 | 395 |
| 387 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; | 396 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; |
| 388 | 397 |
| 389 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 398 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
| 390 }; | 399 }; |
| 391 | 400 |
| 392 } // namespace chromeos | 401 } // namespace chromeos |
| 393 | 402 |
| 394 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 403 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |