Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
|
kylechar
2017/02/09 15:05:54
Huh? I don't understand why there are two mojom de
thanhph1
2017/02/10 19:54:32
I removed this enum here. Check the display_consta
| |
| 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/display/mojo/display_mode.mojom"; | |
| 8 import "ui/gfx/geometry/mojo/geometry.mojom"; | |
| 9 | |
| 10 enum DisplayConnectionType { | |
| 11 DISPLAY_CONNECTION_TYPE_NONE = 0, | |
| 12 DISPLAY_CONNECTION_TYPE_UNKNOWN = 1, | |
| 13 DISPLAY_CONNECTION_TYPE_INTERNAL = 2, | |
| 14 DISPLAY_CONNECTION_TYPE_VGA = 4, | |
| 15 DISPLAY_CONNECTION_TYPE_HDMI = 8, | |
| 16 DISPLAY_CONNECTION_TYPE_DVI = 16, | |
| 17 DISPLAY_CONNECTION_TYPE_DISPLAYPORT = 32, | |
| 18 DISPLAY_CONNECTION_TYPE_NETWORK = 64, | |
| 19 DISPLAY_CONNECTION_TYPE_VIRTUAL = 128, | |
| 20 | |
| 21 // Update this when adding a new type. | |
| 22 DISPLAY_CONNECTION_TYPE_LAST = DISPLAY_CONNECTION_TYPE_VIRTUAL | |
| 23 }; | |
| 24 | |
| 25 // Corresponds to display::DisplaySnapshotMojo | |
| 26 struct DisplaySnapshotMojo { | |
| 27 int64 display_id; | |
| 28 gfx.mojom.Point origin; | |
| 29 gfx.mojom.Size physical_size; | |
| 30 display.mojom.DisplayConnectionType type; | |
| 31 bool is_aspect_preserving_scaling; | |
| 32 bool has_overscan; | |
| 33 bool has_color_correction_matrix; | |
| 34 string display_name; | |
| 35 string sys_path; | |
| 36 array<display.mojom.DisplayMode> modes; | |
| 37 array<uint8> edid; | |
| 38 int64 current_mode_index; | |
| 39 int64 native_mode_index; | |
| 40 int64 product_id; | |
| 41 }; | |
| OLD | NEW |