Index: services/ui/public/interfaces/display/display.mojom |
diff --git a/services/ui/public/interfaces/display/display.mojom b/services/ui/public/interfaces/display/display.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..70111918ad8034a5c09e1e6d95396a2b39c046f4 |
--- /dev/null |
+++ b/services/ui/public/interfaces/display/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. |
+enum Rotation { |
+ VALUE_0, |
+ VALUE_90, |
+ VALUE_180, |
+ VALUE_270, |
+}; |
+ |
+// Corresponds to display::Display::TouchSupport. |
+enum TouchSupport { |
+ UNKNOWN, |
+ AVAILABLE, |
+ UNAVAILABLE, |
+}; |
+ |
+// Corresponds to display::Display. |
+struct Display { |
+ int64 id; |
+ gfx.mojom.Rect bounds; |
+ gfx.mojom.Rect work_area; |
+ float device_scale_factor; |
+ Rotation rotation; |
+ TouchSupport touch_support; |
+ gfx.mojom.Size maximum_cursor_size; |
+}; |