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

Unified Diff: services/ui/public/interfaces/display_manager.mojom

Issue 2461513002: Primary display change notifications. (Closed)
Patch Set: Cleanup. Created 4 years, 2 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
Index: services/ui/public/interfaces/display_manager.mojom
diff --git a/services/ui/public/interfaces/display.mojom b/services/ui/public/interfaces/display_manager.mojom
similarity index 55%
rename from services/ui/public/interfaces/display.mojom
rename to services/ui/public/interfaces/display_manager.mojom
index 2c10ce8de90ead441d4c1a28e63de66cbf5369a7..399506560513a93ae566e77dda6434ccf3f831e8 100644
--- a/services/ui/public/interfaces/display.mojom
+++ b/services/ui/public/interfaces/display_manager.mojom
@@ -7,8 +7,12 @@ module ui.mojom;
import "services/ui/public/interfaces/window_manager_constants.mojom";
interface DisplayManagerObserver {
- // Sent when the observer is added. Gives the initial state.
- OnDisplays(array<WsDisplay> displays);
+ // Sent when the observer is added. |displays| contains all known displays.
+ // |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.
+ // kInvalidDisplayID if there is no internal display id.
+ OnDisplays(array<WsDisplay> displays,
+ int64 primary_display_id,
+ int64 internal_display_id);
// The specified set of displays has changed in some way. This is used both
// when a new display is added, or when a property of a display changes.
@@ -17,7 +21,11 @@ interface DisplayManagerObserver {
OnDisplaysChanged(array<WsDisplay> displays);
// An existing display was removed.
- OnDisplayRemoved(int64 id);
+ OnDisplayRemoved(int64 display_id);
+
+ // The primary display has changed. If the last display is about to be removed
+ // then |primary_display_id| will be kInvalidDisplayID.
+ OnPrimaryDisplayChanged(int64 primary_display_id);
sky 2016/10/28 17:08:47 Similar comment to PlatformScreenDelegate.
kylechar 2016/10/28 19:40:36 Done.
};
interface DisplayManager {

Powered by Google App Engine
This is Rietveld 408576698