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

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

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
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/session/session_state_observer.h" 10 #include "ash/session/session_state_observer.h"
(...skipping 25 matching lines...) Expand all
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
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 void PostLoadChromeVox(Profile* profile); 279 void PostLoadChromeVox(Profile* profile);
274 void PostUnloadChromeVox(Profile* profile); 280 void PostUnloadChromeVox(Profile* profile);
275 281
276 void UpdateLargeCursorFromPref(); 282 void UpdateLargeCursorFromPref();
277 void UpdateStickyKeysFromPref(); 283 void UpdateStickyKeysFromPref();
278 void UpdateSpokenFeedbackFromPref(); 284 void UpdateSpokenFeedbackFromPref();
279 void UpdateHighContrastFromPref(); 285 void UpdateHighContrastFromPref();
280 void UpdateAutoclickFromPref(); 286 void UpdateAutoclickFromPref();
281 void UpdateAutoclickDelayFromPref(); 287 void UpdateAutoclickDelayFromPref();
282 void UpdateVirtualKeyboardFromPref(); 288 void UpdateVirtualKeyboardFromPref();
289 void UpdateMonoAudioFromPref();
283 void UpdateCaretHighlightFromPref(); 290 void UpdateCaretHighlightFromPref();
284 void UpdateCursorHighlightFromPref(); 291 void UpdateCursorHighlightFromPref();
285 void UpdateFocusHighlightFromPref(); 292 void UpdateFocusHighlightFromPref();
286 void UpdateSelectToSpeakFromPref(); 293 void UpdateSelectToSpeakFromPref();
287 void UpdateSwitchAccessFromPref(); 294 void UpdateSwitchAccessFromPref();
288 void UpdateAccessibilityHighlightingFromPrefs(); 295 void UpdateAccessibilityHighlightingFromPrefs();
289 296
290 void CheckBrailleState(); 297 void CheckBrailleState();
291 void ReceiveBrailleDisplayState( 298 void ReceiveBrailleDisplayState(
292 std::unique_ptr<extensions::api::braille_display_private::DisplayState> 299 std::unique_ptr<extensions::api::braille_display_private::DisplayState>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 std::unique_ptr<PrefChangeRegistrar> pref_change_registrar_; 341 std::unique_ptr<PrefChangeRegistrar> pref_change_registrar_;
335 std::unique_ptr<PrefChangeRegistrar> local_state_pref_change_registrar_; 342 std::unique_ptr<PrefChangeRegistrar> local_state_pref_change_registrar_;
336 std::unique_ptr<ash::ScopedSessionStateObserver> session_state_observer_; 343 std::unique_ptr<ash::ScopedSessionStateObserver> session_state_observer_;
337 344
338 PrefHandler large_cursor_pref_handler_; 345 PrefHandler large_cursor_pref_handler_;
339 PrefHandler spoken_feedback_pref_handler_; 346 PrefHandler spoken_feedback_pref_handler_;
340 PrefHandler high_contrast_pref_handler_; 347 PrefHandler high_contrast_pref_handler_;
341 PrefHandler autoclick_pref_handler_; 348 PrefHandler autoclick_pref_handler_;
342 PrefHandler autoclick_delay_pref_handler_; 349 PrefHandler autoclick_delay_pref_handler_;
343 PrefHandler virtual_keyboard_pref_handler_; 350 PrefHandler virtual_keyboard_pref_handler_;
351 PrefHandler mono_audio_pref_handler_;
344 PrefHandler caret_highlight_pref_handler_; 352 PrefHandler caret_highlight_pref_handler_;
345 PrefHandler cursor_highlight_pref_handler_; 353 PrefHandler cursor_highlight_pref_handler_;
346 PrefHandler focus_highlight_pref_handler_; 354 PrefHandler focus_highlight_pref_handler_;
347 PrefHandler select_to_speak_pref_handler_; 355 PrefHandler select_to_speak_pref_handler_;
348 PrefHandler switch_access_pref_handler_; 356 PrefHandler switch_access_pref_handler_;
349 357
350 bool large_cursor_enabled_; 358 bool large_cursor_enabled_;
351 bool sticky_keys_enabled_; 359 bool sticky_keys_enabled_;
352 bool spoken_feedback_enabled_; 360 bool spoken_feedback_enabled_;
353 bool high_contrast_enabled_; 361 bool high_contrast_enabled_;
354 bool autoclick_enabled_; 362 bool autoclick_enabled_;
355 int autoclick_delay_ms_; 363 int autoclick_delay_ms_;
356 bool virtual_keyboard_enabled_; 364 bool virtual_keyboard_enabled_;
365 bool mono_audio_enabled_;
357 bool caret_highlight_enabled_; 366 bool caret_highlight_enabled_;
358 bool cursor_highlight_enabled_; 367 bool cursor_highlight_enabled_;
359 bool focus_highlight_enabled_; 368 bool focus_highlight_enabled_;
360 bool select_to_speak_enabled_; 369 bool select_to_speak_enabled_;
361 bool switch_access_enabled_; 370 bool switch_access_enabled_;
362 371
363 ui::AccessibilityNotificationVisibility spoken_feedback_notification_; 372 ui::AccessibilityNotificationVisibility spoken_feedback_notification_;
364 373
365 bool should_speak_chrome_vox_announcements_on_user_screen_; 374 bool should_speak_chrome_vox_announcements_on_user_screen_;
366 375
(...skipping 23 matching lines...) Expand all
390 accessibility_highlight_manager_; 399 accessibility_highlight_manager_;
391 400
392 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; 401 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_;
393 402
394 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); 403 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager);
395 }; 404 };
396 405
397 } // namespace chromeos 406 } // namespace chromeos
398 407
399 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ 408 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | chrome/browser/chromeos/accessibility/accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698