| Index: components/exo/wm_helper_ash.cc
|
| diff --git a/components/exo/wm_helper_ash.cc b/components/exo/wm_helper_ash.cc
|
| index e4b96bfd6ba09d42d6235e93ed9f3eceea341209..4474033ce1d21804ccfaf79e5244ca68b5e2e682 100644
|
| --- a/components/exo/wm_helper_ash.cc
|
| +++ b/components/exo/wm_helper_ash.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "components/exo/wm_helper_ash.h"
|
|
|
| +#include "ash/accessibility_delegate.h"
|
| #include "ash/public/cpp/config.h"
|
| #include "ash/shell.h"
|
| #include "ash/shell_port.h"
|
| @@ -31,6 +32,7 @@
|
| aura::client::GetFocusClient(ash::Shell::GetPrimaryRootWindow());
|
| focus_client->AddObserver(this);
|
| ui::InputDeviceManager::GetInstance()->AddObserver(this);
|
| + ash::Shell::Get()->system_tray_notifier()->AddAccessibilityObserver(this);
|
| }
|
|
|
| WMHelperAsh::~WMHelperAsh() {
|
| @@ -46,6 +48,7 @@
|
| ash::Shell::Get()->activation_client()->RemoveObserver(this);
|
| ash::Shell::Get()->RemoveShellObserver(this);
|
| ui::InputDeviceManager::GetInstance()->RemoveObserver(this);
|
| + ash::Shell::Get()->system_tray_notifier()->RemoveAccessibilityObserver(this);
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| @@ -106,6 +109,14 @@
|
| ->IsMaximizeModeWindowManagerEnabled();
|
| }
|
|
|
| +bool WMHelperAsh::IsSpokenFeedbackEnabled() const {
|
| + return ash::Shell::Get()->accessibility_delegate()->IsSpokenFeedbackEnabled();
|
| +}
|
| +
|
| +void WMHelperAsh::PlayEarcon(int sound_key) const {
|
| + return ash::Shell::Get()->accessibility_delegate()->PlayEarcon(sound_key);
|
| +}
|
| +
|
| void WMHelperAsh::OnWindowActivated(
|
| aura::client::ActivationChangeObserver::ActivationReason reason,
|
| aura::Window* gained_active,
|
| @@ -124,6 +135,11 @@
|
|
|
| void WMHelperAsh::OnCursorSetChanged(ui::CursorSetType cursor_set) {
|
| NotifyCursorSetChanged(cursor_set);
|
| +}
|
| +
|
| +void WMHelperAsh::OnAccessibilityModeChanged(
|
| + ash::AccessibilityNotificationVisibility notify) {
|
| + NotifyAccessibilityModeChanged();
|
| }
|
|
|
| void WMHelperAsh::OnMaximizeModeStarted() {
|
|
|