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/common/accessibility_types.h" | 10 #include "ash/common/accessibility_types.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_TOGGLE_MONO_AUDIO, |
47 ACCESSIBILITY_BRAILLE_DISPLAY_CONNECTION_STATE_CHANGED | 47 ACCESSIBILITY_BRAILLE_DISPLAY_CONNECTION_STATE_CHANGED |
48 }; | 48 }; |
49 | 49 |
50 struct AccessibilityStatusEventDetails { | 50 struct AccessibilityStatusEventDetails { |
51 AccessibilityStatusEventDetails( | 51 AccessibilityStatusEventDetails( |
52 AccessibilityNotificationType notification_type, | 52 AccessibilityNotificationType notification_type, |
53 bool enabled, | 53 bool enabled, |
54 ui::AccessibilityNotificationVisibility notify); | 54 ash::AccessibilityNotificationVisibility notify); |
55 | 55 |
56 AccessibilityStatusEventDetails( | 56 AccessibilityStatusEventDetails( |
57 AccessibilityNotificationType notification_type, | 57 AccessibilityNotificationType notification_type, |
58 bool enabled, | 58 bool enabled, |
59 ui::MagnifierType magnifier_type, | 59 ash::MagnifierType magnifier_type, |
60 ui::AccessibilityNotificationVisibility notify); | 60 ash::AccessibilityNotificationVisibility notify); |
61 | 61 |
62 AccessibilityNotificationType notification_type; | 62 AccessibilityNotificationType notification_type; |
63 bool enabled; | 63 bool enabled; |
64 ui::MagnifierType magnifier_type; | 64 ash::MagnifierType magnifier_type; |
65 ui::AccessibilityNotificationVisibility notify; | 65 ash::AccessibilityNotificationVisibility notify; |
66 }; | 66 }; |
67 | 67 |
68 typedef base::Callback<void(const AccessibilityStatusEventDetails&)> | 68 typedef base::Callback<void(const AccessibilityStatusEventDetails&)> |
69 AccessibilityStatusCallback; | 69 AccessibilityStatusCallback; |
70 | 70 |
71 typedef base::CallbackList<void(const AccessibilityStatusEventDetails&)> | 71 typedef base::CallbackList<void(const AccessibilityStatusEventDetails&)> |
72 AccessibilityStatusCallbackList; | 72 AccessibilityStatusCallbackList; |
73 | 73 |
74 typedef AccessibilityStatusCallbackList::Subscription | 74 typedef AccessibilityStatusCallbackList::Subscription |
75 AccessibilityStatusSubscription; | 75 AccessibilityStatusSubscription; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 // Returns true if Incognito mode is allowed, or false if not. | 131 // Returns true if Incognito mode is allowed, or false if not. |
132 bool IsIncognitoAllowed(); | 132 bool IsIncognitoAllowed(); |
133 | 133 |
134 // Returns true if the Sticky Keys is enabled, or false if not. | 134 // Returns true if the Sticky Keys is enabled, or false if not. |
135 bool IsStickyKeysEnabled(); | 135 bool IsStickyKeysEnabled(); |
136 | 136 |
137 // Enables or disables spoken feedback. Enabling spoken feedback installs the | 137 // Enables or disables spoken feedback. Enabling spoken feedback installs the |
138 // ChromeVox component extension. | 138 // ChromeVox component extension. |
139 void EnableSpokenFeedback(bool enabled, | 139 void EnableSpokenFeedback(bool enabled, |
140 ui::AccessibilityNotificationVisibility notify); | 140 ash::AccessibilityNotificationVisibility notify); |
141 | 141 |
142 // Returns true if spoken feedback is enabled, or false if not. | 142 // Returns true if spoken feedback is enabled, or false if not. |
143 bool IsSpokenFeedbackEnabled(); | 143 bool IsSpokenFeedbackEnabled(); |
144 | 144 |
145 // Toggles whether Chrome OS spoken feedback is on or off. | 145 // Toggles whether Chrome OS spoken feedback is on or off. |
146 void ToggleSpokenFeedback(ui::AccessibilityNotificationVisibility notify); | 146 void ToggleSpokenFeedback(ash::AccessibilityNotificationVisibility notify); |
147 | 147 |
148 // Enables or disables the high contrast mode for Chrome. | 148 // Enables or disables the high contrast mode for Chrome. |
149 void EnableHighContrast(bool enabled); | 149 void EnableHighContrast(bool enabled); |
150 | 150 |
151 // Returns true if High Contrast is enabled, or false if not. | 151 // Returns true if High Contrast is enabled, or false if not. |
152 bool IsHighContrastEnabled(); | 152 bool IsHighContrastEnabled(); |
153 | 153 |
154 // Enables or disables autoclick. | 154 // Enables or disables autoclick. |
155 void EnableAutoclick(bool enabled); | 155 void EnableAutoclick(bool enabled); |
156 | 156 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 bool autoclick_enabled_; | 370 bool autoclick_enabled_; |
371 int autoclick_delay_ms_; | 371 int autoclick_delay_ms_; |
372 bool virtual_keyboard_enabled_; | 372 bool virtual_keyboard_enabled_; |
373 bool mono_audio_enabled_; | 373 bool mono_audio_enabled_; |
374 bool caret_highlight_enabled_; | 374 bool caret_highlight_enabled_; |
375 bool cursor_highlight_enabled_; | 375 bool cursor_highlight_enabled_; |
376 bool focus_highlight_enabled_; | 376 bool focus_highlight_enabled_; |
377 bool select_to_speak_enabled_; | 377 bool select_to_speak_enabled_; |
378 bool switch_access_enabled_; | 378 bool switch_access_enabled_; |
379 | 379 |
380 ui::AccessibilityNotificationVisibility spoken_feedback_notification_; | 380 ash::AccessibilityNotificationVisibility spoken_feedback_notification_; |
381 | 381 |
382 bool should_speak_chrome_vox_announcements_on_user_screen_; | 382 bool should_speak_chrome_vox_announcements_on_user_screen_; |
383 | 383 |
384 bool system_sounds_enabled_; | 384 bool system_sounds_enabled_; |
385 | 385 |
386 AccessibilityStatusCallbackList callback_list_; | 386 AccessibilityStatusCallbackList callback_list_; |
387 | 387 |
388 bool braille_display_connected_; | 388 bool braille_display_connected_; |
389 ScopedObserver<extensions::api::braille_display_private::BrailleController, | 389 ScopedObserver<extensions::api::braille_display_private::BrailleController, |
390 AccessibilityManager> scoped_braille_observer_; | 390 AccessibilityManager> scoped_braille_observer_; |
(...skipping 16 matching lines...) Expand all Loading... |
407 accessibility_highlight_manager_; | 407 accessibility_highlight_manager_; |
408 | 408 |
409 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; | 409 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; |
410 | 410 |
411 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 411 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
412 }; | 412 }; |
413 | 413 |
414 } // namespace chromeos | 414 } // namespace chromeos |
415 | 415 |
416 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 416 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |