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

Unified Diff: services/ui/public/interfaces/display/display.mojom

Issue 2123613002: Add a mojom/StructTrait for display::Display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move unit test target. 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 | « services/ui/public/interfaces/display/OWNERS ('k') | services/ui/public/interfaces/display/display.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+};
« no previous file with comments | « services/ui/public/interfaces/display/OWNERS ('k') | services/ui/public/interfaces/display/display.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698