OLD | NEW |
(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 }; |
OLD | NEW |