Chromium Code Reviews| Index: ui/display/mojo/display_snapshot_mojo.mojom |
| diff --git a/ui/display/mojo/display_snapshot_mojo.mojom b/ui/display/mojo/display_snapshot_mojo.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6982c803160a155fe4292d780e2fbe6424b9477c |
| --- /dev/null |
| +++ b/ui/display/mojo/display_snapshot_mojo.mojom |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module display.mojom; |
| + |
| +import "mojo/common/file_path.mojom"; |
| +import "ui/display/mojo/display_constants.mojom"; |
| +import "ui/display/mojo/display_mode.mojom"; |
| +import "ui/gfx/geometry/mojo/geometry.mojom"; |
| + |
| +// Corresponds to display::DisplaySnapshotMojo |
| +struct DisplaySnapshotMojo { |
| + int64 display_id; |
| + gfx.mojom.Point origin; |
| + gfx.mojom.Size physical_size; |
| + display.mojom.DisplayConnectionType type; |
| + bool is_aspect_preserving_scaling; |
| + bool has_overscan; |
| + bool has_color_correction_matrix; |
| + string display_name; |
| + mojo.common.mojom.FilePath sys_path; |
|
kylechar
2017/02/10 21:40:29
Very cool!
|
| + array<display.mojom.DisplayMode> modes; |
| + array<uint8> edid; |
| + int64 current_mode_index; |
|
kylechar
2017/02/10 21:40:29
uint64? is probably a more appropriate type. See c
thanhph1
2017/02/13 20:09:11
Done.
|
| + int64 native_mode_index; |
| + int64 product_id; |
|
kylechar
2017/02/10 21:40:29
You need all the fields in DisplaySnapshot, maximu
thanhph1
2017/02/13 20:09:11
Done.
|
| +}; |