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

Unified Diff: components/exo/wm_helper.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.cc
diff --git a/components/exo/wm_helper.cc b/components/exo/wm_helper.cc
index 6e4b495ba5c8ae3a802ed9575237223eae37bd78..517a4ae414518b419f024c780dee897db8cef52a 100644
--- a/components/exo/wm_helper.cc
+++ b/components/exo/wm_helper.cc
@@ -62,6 +62,14 @@ void WMHelper::RemoveMaximizeModeObserver(MaximizeModeObserver* observer) {
maximize_mode_observers_.RemoveObserver(observer);
}
+void WMHelper::AddAccessibilityObserver(AccessibilityObserver* observer) {
+ accessibility_observers_.AddObserver(observer);
+}
+
+void WMHelper::RemoveAccessibilityObserver(AccessibilityObserver* observer) {
+ accessibility_observers_.RemoveObserver(observer);
+}
+
void WMHelper::NotifyWindowActivated(aura::Window* gained_active,
aura::Window* lost_active) {
FOR_EACH_OBSERVER(ActivationObserver, activation_observers_,
@@ -94,4 +102,9 @@ void WMHelper::NotifyMaximizeModeEnded() {
OnMaximizeModeEnded());
}
+void WMHelper::NotifyAccessibilityModeChanged() {
+ FOR_EACH_OBSERVER(AccessibilityObserver, accessibility_observers_,
+ OnAccessibilityModeChanged());
+}
+
} // namespace exo

Powered by Google App Engine
This is Rietveld 408576698