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

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

Issue 2123613002: Add a mojom/StructTrait for display::Display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments. Created 4 years, 5 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/OWNERS ('k') | ui/display/mojo/display.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/mojo/display.mojom
diff --git a/ui/display/mojo/display.mojom b/ui/display/mojo/display.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..a3cd1155eebb3849316224adca0f3d64b2512787
--- /dev/null
+++ b/ui/display/mojo/display.mojom
@@ -0,0 +1,33 @@
+// 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 display.mojom;
+
+import "ui/gfx/geometry/mojo/geometry.mojom";
+
+// Corresponds to display::Display::Rotation.
sky 2016/07/06 16:40:34 The reason I added FrameDecorationValues to Displa
kylechar 2016/07/06 17:19:19 It's not really intended to keep duplicate structu
+enum DisplayRotation {
+ VALUE_0,
+ VALUE_90,
+ VALUE_180,
+ VALUE_270,
+};
+
+// Corresponds to display::Display::TouchSupport.
+enum TouchSupport {
+ UNKNOWN,
+ AVAILABLE,
+ UNAVAILABLE,
+};
+
+// Corresponds display ui::Display.
+struct Display {
+ int64 id;
+ gfx.mojom.Rect bounds;
+ gfx.mojom.Rect work_area;
+ float device_scale_factor;
+ DisplayRotation rotation;
+ TouchSupport touch_support;
+ gfx.mojom.Size maximum_cursor_size;
+};
« no previous file with comments | « ui/display/mojo/OWNERS ('k') | ui/display/mojo/display.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698