| 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 e6dadbecb9304f49d24480a77538db100d66bea6..a4deb24d8a6df1b372d9495a7d379ea36c768bb8 100644
|
| --- a/chrome/browser/chromeos/accessibility/accessibility_manager.h
|
| +++ b/chrome/browser/chromeos/accessibility/accessibility_manager.h
|
| @@ -6,6 +6,7 @@
|
| #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_
|
|
|
| #include "ash/accessibility_delegate.h"
|
| +#include "ash/session_state_observer.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/prefs/pref_change_registrar.h"
|
| #include "base/time/time.h"
|
| @@ -40,7 +41,8 @@ struct AccessibilityStatusEventDetails {
|
| // TODO(yoshiki): merge MagnificationManager with AccessibilityManager.
|
| class AccessibilityManager : public content::NotificationObserver,
|
| public extensions::EventRouter::Observer,
|
| - extensions::api::braille_display_private::BrailleObserver {
|
| + extensions::api::braille_display_private::BrailleObserver,
|
| + public ash::SessionStateObserver {
|
| public:
|
| // Creates an instance of AccessibilityManager, this should be called once,
|
| // because only one instance should exist at the same time.
|
| @@ -67,6 +69,9 @@ class AccessibilityManager : public content::NotificationObserver,
|
| const char* pref_path_;
|
| };
|
|
|
| + // Returns true when the accessibility menu should be shown.
|
| + bool ShouldShowAccessibilityMenu();
|
| +
|
| // Enables or disables the large cursor.
|
| void EnableLargeCursor(bool enabled);
|
| // Returns true if the large cursor is enabled, or false if not.
|
| @@ -110,6 +115,9 @@ class AccessibilityManager : public content::NotificationObserver,
|
| // Returns the autoclick delay in milliseconds.
|
| int GetAutoclickDelay() const;
|
|
|
| + // SessionStateObserver overrides:
|
| + virtual void ActiveUserChanged(const std::string& user_id) OVERRIDE;
|
| +
|
| void SetProfileForTest(Profile* profile);
|
|
|
| static void SetBrailleControllerForTest(
|
| @@ -205,6 +213,9 @@ class AccessibilityManager : public content::NotificationObserver,
|
|
|
| bool should_speak_chrome_vox_announcements_on_user_screen_;
|
|
|
| + // True if the session state observer was installed.
|
| + bool session_state_observer_installed_;
|
| +
|
| bool system_sounds_enabled_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(AccessibilityManager);
|
|
|