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

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

Issue 2661663002: Add DisplayPlacement/Layout mojoms + StructTraits. (Closed)
Patch Set: Remove empty comments. 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
« no previous file with comments | « ui/display/mojo/BUILD.gn ('k') | ui/display/mojo/display_layout.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e2a1e92ce55a4fe43c361bd44ff865917ab29466
--- /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,
+};
+
+// 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;
+};
« no previous file with comments | « ui/display/mojo/BUILD.gn ('k') | ui/display/mojo/display_layout.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698