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

Unified Diff: components/exo/wm_helper.h

Issue 2645663004: exo: Initial support for multiple displays in ARC (Closed)
Patch Set: Address nits Created 3 years, 9 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
« 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 9ce432b862d28ebad0d2a0a769d7f73912e02eba..ad0aeb6ac5a49c4ade7b17c4aac25ecff5873d22 100644
--- a/components/exo/wm_helper.h
+++ b/components/exo/wm_helper.h
@@ -79,6 +79,14 @@ class WMHelper {
virtual ~InputDeviceEventObserver() {}
};
+ class DisplayConfigurationObserver {
+ public:
+ virtual void OnDisplayConfigurationChanged() = 0;
+
+ protected:
+ virtual ~DisplayConfigurationObserver() {}
+ };
+
virtual ~WMHelper();
static void SetInstance(WMHelper* helper);
@@ -96,6 +104,9 @@ class WMHelper {
void RemoveAccessibilityObserver(AccessibilityObserver* observer);
void AddInputDeviceEventObserver(InputDeviceEventObserver* observer);
void RemoveInputDeviceEventObserver(InputDeviceEventObserver* observer);
+ void AddDisplayConfigurationObserver(DisplayConfigurationObserver* observer);
+ void RemoveDisplayConfigurationObserver(
+ DisplayConfigurationObserver* observer);
virtual const display::ManagedDisplayInfo GetDisplayInfo(
int64_t display_id) const = 0;
@@ -126,6 +137,7 @@ class WMHelper {
void NotifyMaximizeModeEnded();
void NotifyAccessibilityModeChanged();
void NotifyKeyboardDeviceConfigurationChanged();
+ void NotifyDisplayConfigurationChanged();
private:
base::ObserverList<ActivationObserver> activation_observers_;
@@ -134,6 +146,7 @@ class WMHelper {
base::ObserverList<MaximizeModeObserver> maximize_mode_observers_;
base::ObserverList<AccessibilityObserver> accessibility_observers_;
base::ObserverList<InputDeviceEventObserver> input_device_event_observers_;
+ base::ObserverList<DisplayConfigurationObserver> display_config_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