OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module mus.mojom; | 5 module mus.mojom; |
6 | 6 |
7 import "components/mus/public/interfaces/window_manager_constants.mojom"; | 7 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
8 | 8 |
9 interface DisplayManagerObserver { | 9 interface DisplayManagerObserver { |
10 // Sent when the observer is added. Gives the initial state. | 10 // Sent when the observer is added. Gives the initial state. |
11 OnDisplays(array<Display> displays); | 11 OnDisplays(array<Display> displays); |
12 | 12 |
13 // The specified set of displays has changed in some way. This is used both | 13 // The specified set of displays has changed in some way. This is used both |
14 // when a new display is added, or when a property of a display changes. | 14 // when a new display is added, or when a property of a display changes. |
15 // |displays| does not necessarily contain the complete set of displays, | 15 // |displays| does not necessarily contain the complete set of displays, |
16 // only those that changed. | 16 // only those that changed. |
17 OnDisplaysChanged(array<Display> displays); | 17 OnDisplaysChanged(array<Display> displays); |
18 | 18 |
19 // An existing display was removed. | 19 // An existing display was removed. |
20 OnDisplayRemoved(int64 id); | 20 OnDisplayRemoved(int64 id); |
21 }; | 21 }; |
22 | 22 |
23 interface DisplayManager { | 23 interface DisplayManager { |
24 AddObserver(DisplayManagerObserver observer); | 24 AddObserver(DisplayManagerObserver observer); |
25 }; | 25 }; |
OLD | NEW |