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

Unified Diff: components/exo/wm_helper_ash.h

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.h
diff --git a/components/exo/wm_helper_ash.h b/components/exo/wm_helper_ash.h
index 138b9642abc0a3614a992dabd3e5eaa15a7bb731..64797897178e7859d80e0c3d6e42a6ef81481aa8 100644
--- a/components/exo/wm_helper_ash.h
+++ b/components/exo/wm_helper_ash.h
@@ -6,6 +6,7 @@
#define COMPONENTS_EXO_WM_HELPER_ASH_H_
#include "ash/common/shell_observer.h"
+#include "ash/common/system/accessibility_observer.h"
#include "base/macros.h"
#include "components/exo/wm_helper.h"
#include "ui/aura/client/cursor_client_observer.h"
@@ -19,6 +20,7 @@ class WMHelperAsh : public WMHelper,
public aura::client::ActivationChangeObserver,
public aura::client::FocusChangeObserver,
public aura::client::CursorClientObserver,
+ public ash::AccessibilityObserver,
public ash::ShellObserver {
public:
WMHelperAsh();
@@ -37,6 +39,8 @@ class WMHelperAsh : public WMHelper,
void AddPostTargetHandler(ui::EventHandler* handler) override;
void RemovePostTargetHandler(ui::EventHandler* handler) override;
bool IsMaximizeModeWindowManagerEnabled() const override;
+ bool IsSpokenFeedbackEnabled() const override;
+ void PlayEarcon(int sound_key) const override;
// Overriden from aura::client::ActivationChangeObserver:
void OnWindowActivated(
@@ -52,6 +56,10 @@ class WMHelperAsh : public WMHelper,
void OnCursorVisibilityChanged(bool is_visible) override;
void OnCursorSetChanged(ui::CursorSetType cursor_set) override;
+ // Overridden from ash::AccessibilityObserver:
+ void OnAccessibilityModeChanged(
+ ash::AccessibilityNotificationVisibility notify) override;
+
// Overriden from ash::ShellObserver:
void OnMaximizeModeStarted() override;
void OnMaximizeModeEnded() override;

Powered by Google App Engine
This is Rietveld 408576698