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

Unified Diff: ui/display/mojo/display_layout.mojom

Issue 2661663002: Add DisplayPlacement/Layout mojoms + StructTraits. (Closed)
Patch Set: Fixes. Created 3 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: ui/display/mojo/display_layout.mojom
diff --git a/ui/display/mojo/display_layout.mojom b/ui/display/mojo/display_layout.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..75c2e51d14c6332367a68dcd6dda6e3373b607dc
--- /dev/null
+++ b/ui/display/mojo/display_layout.mojom
@@ -0,0 +1,36 @@
+// Copyright 2017 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 display.mojom;
+
+// Corresponds to display::DisplayPlacement::Position.
+enum Position {
+ TOP,
+ RIGHT,
+ BOTTOM,
+ LEFT
Daniel Erat 2017/02/01 23:06:37 nit: mojo permits a trailing comma here and in Off
kylechar 2017/02/02 14:40:48 Done.
+};
+
+// Corresponds to display::DisplayPlacement::OffsetReference.
+enum OffsetReference {
+ TOP_LEFT,
+ BOTTOM_RIGHT
+};
+
+// Corresponds to display::DisplayPlacement.
+struct DisplayPlacement {
+ int64 display_id;
+ int64 parent_display_id;
+ Position position;
+ int32 offset;
+ OffsetReference offset_reference;
+};
+
+// Corresponds to display::DisplayLayout.
+struct DisplayLayout {
+ bool mirrored;
+ bool default_unified;
+ int64 primary_display_id;
+ array<DisplayPlacement> placement_list;
+};

Powered by Google App Engine
This is Rietveld 408576698