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

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

Issue 123443002: Track all profiles ChromeVox loads to. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer comments. Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/accessibility/accessibility_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
9
8 #include "ash/accessibility_delegate.h" 10 #include "ash/accessibility_delegate.h"
9 #include "ash/session_state_observer.h" 11 #include "ash/session_state_observer.h"
10 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
11 #include "base/prefs/pref_change_registrar.h" 13 #include "base/prefs/pref_change_registrar.h"
12 #include "base/time/time.h" 14 #include "base/time/time.h"
13 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" 15 #include "chrome/browser/chromeos/accessibility/accessibility_util.h"
14 #include "chrome/browser/extensions/api/braille_display_private/braille_controll er.h" 16 #include "chrome/browser/extensions/api/braille_display_private/braille_controll er.h"
15 #include "chrome/browser/extensions/extension_system.h" 17 #include "chrome/browser/extensions/extension_system.h"
16 #include "content/public/browser/notification_observer.h" 18 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 19 #include "content/public/browser/notification_registrar.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 virtual void OnDisplayStateChanged( 171 virtual void OnDisplayStateChanged(
170 const extensions::api::braille_display_private::DisplayState& 172 const extensions::api::braille_display_private::DisplayState&
171 display_state) OVERRIDE; 173 display_state) OVERRIDE;
172 174
173 // EventRouter::Observer implementation. 175 // EventRouter::Observer implementation.
174 virtual void OnListenerAdded( 176 virtual void OnListenerAdded(
175 const extensions::EventListenerInfo& details) OVERRIDE; 177 const extensions::EventListenerInfo& details) OVERRIDE;
176 virtual void OnListenerRemoved( 178 virtual void OnListenerRemoved(
177 const extensions::EventListenerInfo& details) OVERRIDE; 179 const extensions::EventListenerInfo& details) OVERRIDE;
178 180
179 // Plays sound identified by |sound_key| if |system_sounds_enabled_|. 181 // Plays sound identified by |sound_key|. |sound_key| must be an ID for sound
180 // |sound_key| must be an ID for sound registered by 182 // registered by AccessibilityManager. If there is no such sound, sound isn't
181 // AccessibilityManager. If there is no such sound or 183 // played.
182 // !|system_sounds_enabled_|, sound isn't played.
183 void PlaySound(int sound_key) const; 184 void PlaySound(int sound_key) const;
184 185
185 // Profile which has the current a11y context. 186 // Profile which has the current a11y context.
186 Profile* profile_; 187 Profile* profile_;
187 188
188 // Profile which ChromeVox is currently loaded to. If NULL, ChromeVox is not 189 // Profile which ChromeVox is currently loaded to. If NULL, ChromeVox is not
189 // loaded to any profile. 190 // loaded to any profile.
190 bool chrome_vox_loaded_on_lock_screen_; 191 bool chrome_vox_loaded_on_lock_screen_;
191 bool chrome_vox_loaded_on_user_screen_; 192 bool chrome_vox_loaded_on_user_screen_;
192 193
194 // Set of profiles ChromeVox is loaded to.
195 std::set<Profile*> chromevox_profiles_;
196
193 content::NotificationRegistrar notification_registrar_; 197 content::NotificationRegistrar notification_registrar_;
194 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; 198 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_;
195 scoped_ptr<PrefChangeRegistrar> local_state_pref_change_registrar_; 199 scoped_ptr<PrefChangeRegistrar> local_state_pref_change_registrar_;
196 scoped_ptr<ash::ScopedSessionStateObserver> session_state_observer_; 200 scoped_ptr<ash::ScopedSessionStateObserver> session_state_observer_;
197 201
198 PrefHandler large_cursor_pref_handler_; 202 PrefHandler large_cursor_pref_handler_;
199 PrefHandler spoken_feedback_pref_handler_; 203 PrefHandler spoken_feedback_pref_handler_;
200 PrefHandler high_contrast_pref_handler_; 204 PrefHandler high_contrast_pref_handler_;
201 PrefHandler autoclick_pref_handler_; 205 PrefHandler autoclick_pref_handler_;
202 PrefHandler autoclick_delay_pref_handler_; 206 PrefHandler autoclick_delay_pref_handler_;
(...skipping 12 matching lines...) Expand all
215 bool should_speak_chrome_vox_announcements_on_user_screen_; 219 bool should_speak_chrome_vox_announcements_on_user_screen_;
216 220
217 bool system_sounds_enabled_; 221 bool system_sounds_enabled_;
218 222
219 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); 223 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager);
220 }; 224 };
221 225
222 } // namespace chromeos 226 } // namespace chromeos
223 227
224 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ 228 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/accessibility/accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698