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

Unified Diff: components/exo/wm_helper_ash.cc

Issue 2407303003: exo: Use WMHelper to access ash accessibility related features. (Closed)
Patch Set: Fix compile errors. Created 4 years, 2 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
Index: components/exo/wm_helper_ash.cc
diff --git a/components/exo/wm_helper_ash.cc b/components/exo/wm_helper_ash.cc
index 1a646132e124679c08a8ba5d2554043f9e4f034e..21a085fd4b42a942bd5363dd9c818261a4b1932d 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/common/accessibility_delegate.h"
#include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
#include "ash/common/wm_shell.h"
#include "ash/display/display_manager.h"
@@ -89,6 +90,16 @@ bool WMHelperAsh::IsMaximizeModeWindowManagerEnabled() const {
->IsMaximizeModeWindowManagerEnabled();
}
+bool WMHelperAsh::IsSpokenFeedbackEnabled() const {
+ return ash::WmShell::Get()
+ ->accessibility_delegate()
+ ->IsSpokenFeedbackEnabled();
+}
+
+void WMHelperAsh::PlayEarcon(int sound_key) const {
+ return ash::WmShell::Get()->accessibility_delegate()->PlayEarcon(sound_key);
+}
+
void WMHelperAsh::OnWindowActivated(
aura::client::ActivationChangeObserver::ActivationReason reason,
aura::Window* gained_active,
@@ -109,6 +120,11 @@ void WMHelperAsh::OnCursorSetChanged(ui::CursorSetType cursor_set) {
NotifyCursorSetChanged(cursor_set);
}
+void WMHelperAsh::OnAccessibilityModeChanged(
+ ash::AccessibilityNotificationVisibility notify) {
+ NotifyAccessibilityModeChanged();
+}
+
void WMHelperAsh::OnMaximizeModeStarted() {
NotifyMaximizeModeStarted();
}

Powered by Google App Engine
This is Rietveld 408576698