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

Unified Diff: components/exo/wm_helper_ash.cc

Issue 2887103002: Revert of Refactor backdrop (Closed)
Patch Set: Created 3 years, 7 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 | « components/exo/wm_helper_ash.h ('k') | components/exo/wm_helper_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « components/exo/wm_helper_ash.h ('k') | components/exo/wm_helper_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698