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

Unified Diff: components/mus/public/interfaces/display.mojom

Issue 1615023004: Start of display management for mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash and add back getting constants Created 4 years, 11 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: components/mus/public/interfaces/display.mojom
diff --git a/components/mus/public/interfaces/display.mojom b/components/mus/public/interfaces/display.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..71364999b0ab75a82dc45714cd4507e0b101fc56
--- /dev/null
+++ b/components/mus/public/interfaces/display.mojom
@@ -0,0 +1,25 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module mus.mojom;
+
+import "components/mus/public/interfaces/window_manager_constants.mojom";
+
+interface DisplayManagerObserver {
+ // Sent when the observer is added. Gives the initial state.
+ OnDisplays(array<Display> displays);
+
+ // 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.
+ // |displays| does not necessarily contain the complete set of displays,
+ // only those that changed.
+ OnDisplaysChanged(array<Display> displays);
+
+ // An existing display was removed.
+ OnDisplayRemoved(int64 id);
+};
+
+interface DisplayManager {
+ AddObserver(DisplayManagerObserver observer);
+};
« no previous file with comments | « components/mus/public/interfaces/BUILD.gn ('k') | components/mus/public/interfaces/window_manager_constants.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698