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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module display.mojom;
6
7 import "ui/gfx/geometry/mojo/geometry.mojom";
8
9 // Corresponds to display::Display::Rotation.
10 enum Rotation {
11 VALUE_0,
12 VALUE_90,
13 VALUE_180,
14 VALUE_270,
15 };
16
17 // Corresponds to display::Display::TouchSupport.
18 enum TouchSupport {
19 UNKNOWN,
20 AVAILABLE,
21 UNAVAILABLE,
22 };
23
24 // Corresponds to display::Display.
25 struct Display {
26 int64 id;
27 gfx.mojom.Rect bounds;
28 gfx.mojom.Rect work_area;
29 float device_scale_factor;
30 Rotation rotation;
31 TouchSupport touch_support;
32 gfx.mojom.Size maximum_cursor_size;
33 };
OLDNEW
« 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