| Index: services/ui/ws/user_display_manager.h
|
| diff --git a/services/ui/ws/user_display_manager.h b/services/ui/ws/user_display_manager.h
|
| index 755bb708305ee589f74513e6d013a20c60da3cc2..8b889cda57a91ff866014bc596c48133d0dbdd59 100644
|
| --- a/services/ui/ws/user_display_manager.h
|
| +++ b/services/ui/ws/user_display_manager.h
|
| @@ -29,6 +29,11 @@ class UserDisplayManager : public mojom::DisplayManager {
|
| const UserId& user_id);
|
| ~UserDisplayManager() override;
|
|
|
| + void DisableAutomaticNotification();
|
| +
|
| + // Unconditionally calls OnDisplayChanged() on observers.
|
| + void CallOnDisplaysChanged();
|
| +
|
| // Called when the frame decorations for this user change.
|
| void OnFrameDecorationValuesChanged();
|
|
|
| @@ -78,6 +83,12 @@ class UserDisplayManager : public mojom::DisplayManager {
|
| mojo::InterfacePtrSet<mojom::DisplayManagerObserver>
|
| display_manager_observers_;
|
|
|
| + // If true DisplayManagerObservers are notified any time there is a display
|
| + // change. If false, observers are only notified when CallOnDisplaysChanged()
|
| + // is explicitly called. This value is true in automatic display creation and
|
| + // false when in manual mode.
|
| + bool notify_automatically_ = true;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(UserDisplayManager);
|
| };
|
|
|
|
|