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

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

Issue 1407073002: Adds GetDisplays() to WindowManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk Created 5 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
« no previous file with comments | « components/mus/mus_app.cc ('k') | components/resource_provider/public/cpp/resource_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/interfaces/window_manager.mojom
diff --git a/components/mus/public/interfaces/window_manager.mojom b/components/mus/public/interfaces/window_manager.mojom
index ea51794b05bf273e72d2e9bee0af9b0f5186b2b2..0bedd1f376e808efb7dbd6ca1ed31f7272556597 100644
--- a/components/mus/public/interfaces/window_manager.mojom
+++ b/components/mus/public/interfaces/window_manager.mojom
@@ -7,6 +7,21 @@ module mus.mojom;
import "components/mus/public/interfaces/view_tree.mojom";
import "ui/mojo/geometry/geometry.mojom";
+enum Rotation {
+ VALUE_0,
+ VALUE_90,
+ VALUE_180,
+ VALUE_270,
+};
+
+struct Display {
+ int64 id;
+ mojo.Rect bounds;
+ mojo.Rect work_area;
+ float device_pixel_ratio;
+ Rotation rotation;
+};
+
// Represents a core interface that should be implemented by any window manager
// built on top of Mus.
// For security reasons, methods that take view_ids can only pass view ids
@@ -18,4 +33,6 @@ interface WindowManager {
// Resizes the corresponding view to |size| and centers it in the current
// context.
CenterWindow(uint32 view_id, mojo.Size size);
+
+ GetDisplays() => (array<Display> displays);
};
« no previous file with comments | « components/mus/mus_app.cc ('k') | components/resource_provider/public/cpp/resource_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698