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

Side by Side Diff: services/ui/public/interfaces/display_manager.mojom

Issue 2461513002: Primary display change notifications. (Closed)
Patch Set: Cleanup. Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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 ui.mojom; 5 module ui.mojom;
6 6
7 import "services/ui/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. |displays| contains all known displays.
11 OnDisplays(array<WsDisplay> displays); 11 // |internal_display_id| will be the display id of an existing display or
sky 2016/10/28 17:08:47 It's not clear what you mean by internal in this c
kylechar 2016/10/28 19:40:37 Done.
12 // kInvalidDisplayID if there is no internal display id.
13 OnDisplays(array<WsDisplay> displays,
14 int64 primary_display_id,
15 int64 internal_display_id);
12 16
13 // The specified set of displays has changed in some way. This is used both 17 // 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. 18 // 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, 19 // |displays| does not necessarily contain the complete set of displays,
16 // only those that changed. 20 // only those that changed.
17 OnDisplaysChanged(array<WsDisplay> displays); 21 OnDisplaysChanged(array<WsDisplay> displays);
18 22
19 // An existing display was removed. 23 // An existing display was removed.
20 OnDisplayRemoved(int64 id); 24 OnDisplayRemoved(int64 display_id);
25
26 // The primary display has changed. If the last display is about to be removed
27 // then |primary_display_id| will be kInvalidDisplayID.
28 OnPrimaryDisplayChanged(int64 primary_display_id);
sky 2016/10/28 17:08:47 Similar comment to PlatformScreenDelegate.
kylechar 2016/10/28 19:40:36 Done.
21 }; 29 };
22 30
23 interface DisplayManager { 31 interface DisplayManager {
24 AddObserver(DisplayManagerObserver observer); 32 AddObserver(DisplayManagerObserver observer);
25 }; 33 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698