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

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

Issue 2802783002: List all a11y features in a11y detailed view in ash system menu (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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 ACCESSIBILITY_MANAGER_SHUTDOWN, 44 ACCESSIBILITY_MANAGER_SHUTDOWN,
45 ACCESSIBILITY_TOGGLE_HIGH_CONTRAST_MODE, 45 ACCESSIBILITY_TOGGLE_HIGH_CONTRAST_MODE,
46 ACCESSIBILITY_TOGGLE_LARGE_CURSOR, 46 ACCESSIBILITY_TOGGLE_LARGE_CURSOR,
47 ACCESSIBILITY_TOGGLE_SCREEN_MAGNIFIER, 47 ACCESSIBILITY_TOGGLE_SCREEN_MAGNIFIER,
48 ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK, 48 ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK,
49 ACCESSIBILITY_TOGGLE_VIRTUAL_KEYBOARD, 49 ACCESSIBILITY_TOGGLE_VIRTUAL_KEYBOARD,
50 ACCESSIBILITY_TOGGLE_MONO_AUDIO, 50 ACCESSIBILITY_TOGGLE_MONO_AUDIO,
51 ACCESSIBILITY_TOGGLE_CARET_HIGHLIGHT, 51 ACCESSIBILITY_TOGGLE_CARET_HIGHLIGHT,
52 ACCESSIBILITY_TOGGLE_CURSOR_HIGHLIGHT, 52 ACCESSIBILITY_TOGGLE_CURSOR_HIGHLIGHT,
53 ACCESSIBILITY_TOGGLE_FOCUS_HIGHLIGHT, 53 ACCESSIBILITY_TOGGLE_FOCUS_HIGHLIGHT,
54 ACCESSIBILITY_TOGGLE_STICKY_KEYS,
oshima 2017/04/06 23:04:07 keep the same order?
55 ACCESSIBILITY_TOGGLE_TAP_DRAGGING,
54 ACCESSIBILITY_BRAILLE_DISPLAY_CONNECTION_STATE_CHANGED 56 ACCESSIBILITY_BRAILLE_DISPLAY_CONNECTION_STATE_CHANGED
55 }; 57 };
56 58
57 struct AccessibilityStatusEventDetails { 59 struct AccessibilityStatusEventDetails {
58 AccessibilityStatusEventDetails( 60 AccessibilityStatusEventDetails(
59 AccessibilityNotificationType notification_type, 61 AccessibilityNotificationType notification_type,
60 bool enabled, 62 bool enabled,
61 ash::AccessibilityNotificationVisibility notify); 63 ash::AccessibilityNotificationVisibility notify);
62 64
63 AccessibilityStatusEventDetails( 65 AccessibilityStatusEventDetails(
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 144
143 // Enables or disable Sticky Keys. 145 // Enables or disable Sticky Keys.
144 void EnableStickyKeys(bool enabled); 146 void EnableStickyKeys(bool enabled);
145 147
146 // Returns true if Incognito mode is allowed, or false if not. 148 // Returns true if Incognito mode is allowed, or false if not.
147 bool IsIncognitoAllowed(); 149 bool IsIncognitoAllowed();
148 150
149 // 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.
150 bool IsStickyKeysEnabled(); 152 bool IsStickyKeysEnabled();
151 153
154 // Enables or disables tap dragging.
155 void EnableTapDragging(bool enabled);
oshima 2017/04/06 23:04:07 the order
156
157 // Returns true if the tap dragging is enabled, or false if not.
158 bool IsTapDraggingEnabled();
oshima 2017/04/06 23:04:07 const? pls update other IsXxx (separate CL is fin
159
152 // Enables or disables spoken feedback. Enabling spoken feedback installs the 160 // Enables or disables spoken feedback. Enabling spoken feedback installs the
153 // ChromeVox component extension. 161 // ChromeVox component extension.
154 void EnableSpokenFeedback(bool enabled, 162 void EnableSpokenFeedback(bool enabled,
155 ash::AccessibilityNotificationVisibility notify); 163 ash::AccessibilityNotificationVisibility notify);
156 164
157 // Returns true if spoken feedback is enabled, or false if not. 165 // Returns true if spoken feedback is enabled, or false if not.
158 bool IsSpokenFeedbackEnabled(); 166 bool IsSpokenFeedbackEnabled();
159 167
160 // Toggles whether Chrome OS spoken feedback is on or off. 168 // Toggles whether Chrome OS spoken feedback is on or off.
161 void ToggleSpokenFeedback(ash::AccessibilityNotificationVisibility notify); 169 void ToggleSpokenFeedback(ash::AccessibilityNotificationVisibility notify);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 private: 310 private:
303 void PostLoadChromeVox(); 311 void PostLoadChromeVox();
304 void PostUnloadChromeVox(); 312 void PostUnloadChromeVox();
305 void PostSwitchChromeVoxProfile(); 313 void PostSwitchChromeVoxProfile();
306 void ReloadChromeVoxPanel(); 314 void ReloadChromeVoxPanel();
307 315
308 void UpdateLargeCursorFromPref(); 316 void UpdateLargeCursorFromPref();
309 void UpdateStickyKeysFromPref(); 317 void UpdateStickyKeysFromPref();
310 void UpdateSpokenFeedbackFromPref(); 318 void UpdateSpokenFeedbackFromPref();
311 void UpdateHighContrastFromPref(); 319 void UpdateHighContrastFromPref();
320 void UpdateTapDraggingFromPref();
oshima 2017/04/06 23:04:07 nit: move this between UpdateSelect.. and UpdateSw
312 void UpdateAutoclickFromPref(); 321 void UpdateAutoclickFromPref();
313 void UpdateAutoclickDelayFromPref(); 322 void UpdateAutoclickDelayFromPref();
314 void UpdateVirtualKeyboardFromPref(); 323 void UpdateVirtualKeyboardFromPref();
315 void UpdateMonoAudioFromPref(); 324 void UpdateMonoAudioFromPref();
316 void UpdateCaretHighlightFromPref(); 325 void UpdateCaretHighlightFromPref();
317 void UpdateCursorHighlightFromPref(); 326 void UpdateCursorHighlightFromPref();
318 void UpdateFocusHighlightFromPref(); 327 void UpdateFocusHighlightFromPref();
319 void UpdateSelectToSpeakFromPref(); 328 void UpdateSelectToSpeakFromPref();
320 void UpdateSwitchAccessFromPref(); 329 void UpdateSwitchAccessFromPref();
321 void UpdateAccessibilityHighlightingFromPrefs(); 330 void UpdateAccessibilityHighlightingFromPrefs();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 372
364 content::NotificationRegistrar notification_registrar_; 373 content::NotificationRegistrar notification_registrar_;
365 std::unique_ptr<PrefChangeRegistrar> pref_change_registrar_; 374 std::unique_ptr<PrefChangeRegistrar> pref_change_registrar_;
366 std::unique_ptr<PrefChangeRegistrar> local_state_pref_change_registrar_; 375 std::unique_ptr<PrefChangeRegistrar> local_state_pref_change_registrar_;
367 std::unique_ptr<user_manager::ScopedUserSessionStateObserver> 376 std::unique_ptr<user_manager::ScopedUserSessionStateObserver>
368 session_state_observer_; 377 session_state_observer_;
369 378
370 PrefHandler large_cursor_pref_handler_; 379 PrefHandler large_cursor_pref_handler_;
371 PrefHandler spoken_feedback_pref_handler_; 380 PrefHandler spoken_feedback_pref_handler_;
372 PrefHandler high_contrast_pref_handler_; 381 PrefHandler high_contrast_pref_handler_;
382 PrefHandler sticky_keys_pref_handler_;
373 PrefHandler autoclick_pref_handler_; 383 PrefHandler autoclick_pref_handler_;
374 PrefHandler autoclick_delay_pref_handler_; 384 PrefHandler autoclick_delay_pref_handler_;
375 PrefHandler virtual_keyboard_pref_handler_; 385 PrefHandler virtual_keyboard_pref_handler_;
376 PrefHandler mono_audio_pref_handler_; 386 PrefHandler mono_audio_pref_handler_;
377 PrefHandler caret_highlight_pref_handler_; 387 PrefHandler caret_highlight_pref_handler_;
378 PrefHandler cursor_highlight_pref_handler_; 388 PrefHandler cursor_highlight_pref_handler_;
379 PrefHandler focus_highlight_pref_handler_; 389 PrefHandler focus_highlight_pref_handler_;
390 PrefHandler tap_dragging_pref_handler_;
380 PrefHandler select_to_speak_pref_handler_; 391 PrefHandler select_to_speak_pref_handler_;
381 PrefHandler switch_access_pref_handler_; 392 PrefHandler switch_access_pref_handler_;
382 393
383 bool large_cursor_enabled_; 394 bool large_cursor_enabled_;
384 int large_cursor_size_in_dip_; 395 int large_cursor_size_in_dip_;
385 bool sticky_keys_enabled_; 396 bool sticky_keys_enabled_;
386 bool spoken_feedback_enabled_; 397 bool spoken_feedback_enabled_;
387 bool high_contrast_enabled_; 398 bool high_contrast_enabled_;
388 bool autoclick_enabled_; 399 bool autoclick_enabled_;
389 base::TimeDelta autoclick_delay_ms_; 400 base::TimeDelta autoclick_delay_ms_;
390 bool virtual_keyboard_enabled_; 401 bool virtual_keyboard_enabled_;
391 bool mono_audio_enabled_; 402 bool mono_audio_enabled_;
392 bool caret_highlight_enabled_; 403 bool caret_highlight_enabled_;
393 bool cursor_highlight_enabled_; 404 bool cursor_highlight_enabled_;
394 bool focus_highlight_enabled_; 405 bool focus_highlight_enabled_;
406 bool tap_dragging_enabled_;
395 bool select_to_speak_enabled_; 407 bool select_to_speak_enabled_;
396 bool switch_access_enabled_; 408 bool switch_access_enabled_;
397 409
398 ash::AccessibilityNotificationVisibility spoken_feedback_notification_; 410 ash::AccessibilityNotificationVisibility spoken_feedback_notification_;
399 411
400 bool system_sounds_enabled_; 412 bool system_sounds_enabled_;
401 413
402 AccessibilityStatusCallbackList callback_list_; 414 AccessibilityStatusCallbackList callback_list_;
403 415
404 bool braille_display_connected_; 416 bool braille_display_connected_;
(...skipping 30 matching lines...) Expand all
435 switch_access_event_handler_; 447 switch_access_event_handler_;
436 448
437 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; 449 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_;
438 450
439 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); 451 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager);
440 }; 452 };
441 453
442 } // namespace chromeos 454 } // namespace chromeos
443 455
444 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ 456 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698