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

Unified Diff: components/exo/wm_helper.h

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/wayland/server.cc ('k') | components/exo/wm_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wm_helper.h
diff --git a/components/exo/wm_helper.h b/components/exo/wm_helper.h
index 306c1f11c565eea0ba3467df2e9bd63c91b0e5ed..d814e5bcf9dd1d92e71ad175421684bffea1fc07 100644
--- a/components/exo/wm_helper.h
+++ b/components/exo/wm_helper.h
@@ -70,6 +70,14 @@ class WMHelper {
virtual ~AccessibilityObserver() {}
};
+ class InputDeviceEventObserver {
+ public:
+ virtual void OnKeyboardDeviceConfigurationChanged() = 0;
+
+ protected:
+ virtual ~InputDeviceEventObserver() {}
+ };
+
virtual ~WMHelper();
static void SetInstance(WMHelper* helper);
@@ -85,6 +93,8 @@ class WMHelper {
void RemoveMaximizeModeObserver(MaximizeModeObserver* observer);
void AddAccessibilityObserver(AccessibilityObserver* observer);
void RemoveAccessibilityObserver(AccessibilityObserver* observer);
+ void AddInputDeviceEventObserver(InputDeviceEventObserver* observer);
+ void RemoveInputDeviceEventObserver(InputDeviceEventObserver* observer);
virtual const display::ManagedDisplayInfo GetDisplayInfo(
int64_t display_id) const = 0;
@@ -113,6 +123,7 @@ class WMHelper {
void NotifyMaximizeModeStarted();
void NotifyMaximizeModeEnded();
void NotifyAccessibilityModeChanged();
+ void NotifyKeyboardDeviceConfigurationChanged();
private:
base::ObserverList<ActivationObserver> activation_observers_;
@@ -120,6 +131,7 @@ class WMHelper {
base::ObserverList<CursorObserver> cursor_observers_;
base::ObserverList<MaximizeModeObserver> maximize_mode_observers_;
base::ObserverList<AccessibilityObserver> accessibility_observers_;
+ base::ObserverList<InputDeviceEventObserver> input_device_event_observers_;
DISALLOW_COPY_AND_ASSIGN(WMHelper);
};
« no previous file with comments | « components/exo/wayland/server.cc ('k') | components/exo/wm_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698