Chromium Code Reviews| Index: ui/display/mojo/display_snapshot.mojom |
| diff --git a/ui/display/mojo/display_snapshot.mojom b/ui/display/mojo/display_snapshot.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e7d25833884730923601201e6027ba13647d09c8 |
| --- /dev/null |
| +++ b/ui/display/mojo/display_snapshot.mojom |
| @@ -0,0 +1,31 @@ |
| +// 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 "ui/gfx/geometry/mojo/geometry.mojom"; |
| +import "ui/display/mojo/display_constants.mojom"; |
| +import "ui/display/mojo/display_mode.mojom"; |
| + |
| +// Corresponds to display::DisplaySnapshot |
| +struct DisplaySnapshot { |
| + int64 display_id; |
| + gfx.mojom.Point origin; |
| + gfx.mojom.Size physical_size; |
| + DisplayConnectionType type; |
| + bool is_aspect_preserving_scaling; |
| + bool has_overscan; |
| + bool has_color_correction_matrix; |
| + string display_name; |
| + string sys_path; |
| + array<display.mojom.DisplayMode> modes; |
| + array<uint8> edid; |
| + bool has_current_mode; |
| + display.mojom.DisplayMode current_mode; |
|
kylechar
2017/02/09 15:05:53
bool + DisplayMode takes more memory than an int32
thanhph1
2017/02/10 19:54:32
I removed this file.
|
| + bool has_native_mode; |
| + display.mojom.DisplayMode native_mode; |
| + int64 product_id; |
| + string string_representation; |
|
kylechar
2017/02/09 15:05:53
This isn't part of display::DispalySnapshot and is
thanhph1
2017/02/10 19:54:32
Done, I removed maximum_cursor_size also.
|
| + gfx.mojom.Size maximum_cursor_size; |
| +}; |