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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/accessibility/accessibility_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/accessibility/accessibility_manager.h
diff --git a/chrome/browser/chromeos/accessibility/accessibility_manager.h b/chrome/browser/chromeos/accessibility/accessibility_manager.h
index 8ea472b57daba767929f5e03e4a7a3b08878448f..b662a0f54fc538c701731f0eb093347caef15cca 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_manager.h
+++ b/chrome/browser/chromeos/accessibility/accessibility_manager.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_
#define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_
+#include <set>
+
#include "ash/accessibility_delegate.h"
#include "ash/session_state_observer.h"
#include "base/memory/weak_ptr.h"
@@ -176,10 +178,9 @@ class AccessibilityManager : public content::NotificationObserver,
virtual void OnListenerRemoved(
const extensions::EventListenerInfo& details) OVERRIDE;
- // Plays sound identified by |sound_key| if |system_sounds_enabled_|.
- // |sound_key| must be an ID for sound registered by
- // AccessibilityManager. If there is no such sound or
- // !|system_sounds_enabled_|, sound isn't played.
+ // Plays sound identified by |sound_key|. |sound_key| must be an ID for sound
+ // registered by AccessibilityManager. If there is no such sound, sound isn't
+ // played.
void PlaySound(int sound_key) const;
// Profile which has the current a11y context.
@@ -190,6 +191,9 @@ class AccessibilityManager : public content::NotificationObserver,
bool chrome_vox_loaded_on_lock_screen_;
bool chrome_vox_loaded_on_user_screen_;
+ // Set of profiles ChromeVox is loaded to.
+ std::set<Profile*> chromevox_profiles_;
+
content::NotificationRegistrar notification_registrar_;
scoped_ptr<PrefChangeRegistrar> pref_change_registrar_;
scoped_ptr<PrefChangeRegistrar> local_state_pref_change_registrar_;
« 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