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; |
+}; |