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

Unified Diff: components/exo/wm_helper.cc

Issue 2506263002: exo: Implement support for zcr_keyboard_configuration_v1 protocol. (Closed)
Patch Set: add one more TODO Created 4 years 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.h ('k') | components/exo/wm_helper_ash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wm_helper.cc
diff --git a/components/exo/wm_helper.cc b/components/exo/wm_helper.cc
index 6be7aff4f67848660249a06657e7583510a675df..ce51cbafdac052eba4432db889fd52efdfe5d04e 100644
--- a/components/exo/wm_helper.cc
+++ b/components/exo/wm_helper.cc
@@ -70,6 +70,15 @@ void WMHelper::RemoveAccessibilityObserver(AccessibilityObserver* observer) {
accessibility_observers_.RemoveObserver(observer);
}
+void WMHelper::AddInputDeviceEventObserver(InputDeviceEventObserver* observer) {
+ input_device_event_observers_.AddObserver(observer);
+}
+
+void WMHelper::RemoveInputDeviceEventObserver(
+ InputDeviceEventObserver* observer) {
+ input_device_event_observers_.RemoveObserver(observer);
+}
+
void WMHelper::NotifyWindowActivated(aura::Window* gained_active,
aura::Window* lost_active) {
for (ActivationObserver& observer : activation_observers_)
@@ -107,4 +116,9 @@ void WMHelper::NotifyAccessibilityModeChanged() {
observer.OnAccessibilityModeChanged();
}
+void WMHelper::NotifyKeyboardDeviceConfigurationChanged() {
+ for (InputDeviceEventObserver& observer : input_device_event_observers_)
+ observer.OnKeyboardDeviceConfigurationChanged();
+}
+
} // namespace exo
« no previous file with comments | « components/exo/wm_helper.h ('k') | components/exo/wm_helper_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698