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 "ash/accessibility_delegate.h" | 8 #include "ash/accessibility_delegate.h" |
9 #include "ash/session_state_observer.h" | 9 #include "ash/session_state_observer.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 virtual void OnDisplayStateChanged( | 169 virtual void OnDisplayStateChanged( |
170 const extensions::api::braille_display_private::DisplayState& | 170 const extensions::api::braille_display_private::DisplayState& |
171 display_state) OVERRIDE; | 171 display_state) OVERRIDE; |
172 | 172 |
173 // EventRouter::Observer implementation. | 173 // EventRouter::Observer implementation. |
174 virtual void OnListenerAdded( | 174 virtual void OnListenerAdded( |
175 const extensions::EventListenerInfo& details) OVERRIDE; | 175 const extensions::EventListenerInfo& details) OVERRIDE; |
176 virtual void OnListenerRemoved( | 176 virtual void OnListenerRemoved( |
177 const extensions::EventListenerInfo& details) OVERRIDE; | 177 const extensions::EventListenerInfo& details) OVERRIDE; |
178 | 178 |
179 // Plays sound identified by |sound_key| if |system_sounds_enabled_|. | 179 // Plays sound identified by |sound_key| if |system_sounds_enabled_|. |
James Cook
2014/01/06 20:38:19
This comment isn't true anymore.
| |
180 // |sound_key| must be an ID for sound registered by | 180 // |sound_key| must be an ID for sound registered by |
181 // AccessibilityManager. If there is no such sound or | 181 // AccessibilityManager. If there is no such sound or |
182 // !|system_sounds_enabled_|, sound isn't played. | 182 // !|system_sounds_enabled_|, sound isn't played. |
183 void PlaySound(int sound_key) const; | 183 void PlaySound(int sound_key) const; |
184 | 184 |
185 // Profile which has the current a11y context. | 185 // Profile which has the current a11y context. |
186 Profile* profile_; | 186 Profile* profile_; |
187 | 187 |
188 // Profile which ChromeVox is currently loaded to. If NULL, ChromeVox is not | 188 // Profile which ChromeVox is currently loaded to. If NULL, ChromeVox is not |
189 // loaded to any profile. | 189 // loaded to any profile. |
190 bool chrome_vox_loaded_on_lock_screen_; | 190 bool chrome_vox_loaded_on_lock_screen_; |
191 bool chrome_vox_loaded_on_user_screen_; | 191 bool chrome_vox_loaded_on_user_screen_; |
192 | 192 |
193 // Set of profiles ChromeVox is loaded to. | |
194 std::set<Profile*> chromevox_profiles_; | |
195 | |
193 content::NotificationRegistrar notification_registrar_; | 196 content::NotificationRegistrar notification_registrar_; |
194 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; | 197 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; |
195 scoped_ptr<PrefChangeRegistrar> local_state_pref_change_registrar_; | 198 scoped_ptr<PrefChangeRegistrar> local_state_pref_change_registrar_; |
196 scoped_ptr<ash::ScopedSessionStateObserver> session_state_observer_; | 199 scoped_ptr<ash::ScopedSessionStateObserver> session_state_observer_; |
197 | 200 |
198 PrefHandler large_cursor_pref_handler_; | 201 PrefHandler large_cursor_pref_handler_; |
199 PrefHandler spoken_feedback_pref_handler_; | 202 PrefHandler spoken_feedback_pref_handler_; |
200 PrefHandler high_contrast_pref_handler_; | 203 PrefHandler high_contrast_pref_handler_; |
201 PrefHandler autoclick_pref_handler_; | 204 PrefHandler autoclick_pref_handler_; |
202 PrefHandler autoclick_delay_pref_handler_; | 205 PrefHandler autoclick_delay_pref_handler_; |
(...skipping 12 matching lines...) Expand all Loading... | |
215 bool should_speak_chrome_vox_announcements_on_user_screen_; | 218 bool should_speak_chrome_vox_announcements_on_user_screen_; |
216 | 219 |
217 bool system_sounds_enabled_; | 220 bool system_sounds_enabled_; |
218 | 221 |
219 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 222 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
220 }; | 223 }; |
221 | 224 |
222 } // namespace chromeos | 225 } // namespace chromeos |
223 | 226 |
224 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 227 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |