Chromium Code Reviews| 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. | |
|
sky
2016/07/06 16:40:34
The reason I added FrameDecorationValues to Displa
kylechar
2016/07/06 17:19:19
It's not really intended to keep duplicate structu
| |
| 10 enum DisplayRotation { | |
| 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 display ui::Display. | |
| 25 struct Display { | |
| 26 int64 id; | |
| 27 gfx.mojom.Rect bounds; | |
| 28 gfx.mojom.Rect work_area; | |
| 29 float device_scale_factor; | |
| 30 DisplayRotation rotation; | |
| 31 TouchSupport touch_support; | |
| 32 gfx.mojom.Size maximum_cursor_size; | |
| 33 }; | |
| OLD | NEW |