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