| 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);
|
| };
|
|
|