Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(764)

Unified Diff: ui/display/mojo/display_snapshot_mojo.mojom

Issue 2646213002: Write mojom and StructTraits for DisplaySnapshot. (Closed)
Patch Set: use FILE_PATH_LITERAL to create base::FilePath::StringType Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..b8918e35ab68523eebbb9c3cadd18b6b19083602
--- /dev/null
+++ b/ui/display/mojo/display_snapshot_mojo.mojom
@@ -0,0 +1,41 @@
+// 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
+// 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/display/mojo/display_mode.mojom";
+import "ui/gfx/geometry/mojo/geometry.mojom";
+
+enum DisplayConnectionType {
+ DISPLAY_CONNECTION_TYPE_NONE = 0,
+ DISPLAY_CONNECTION_TYPE_UNKNOWN = 1,
+ DISPLAY_CONNECTION_TYPE_INTERNAL = 2,
+ DISPLAY_CONNECTION_TYPE_VGA = 4,
+ DISPLAY_CONNECTION_TYPE_HDMI = 8,
+ DISPLAY_CONNECTION_TYPE_DVI = 16,
+ DISPLAY_CONNECTION_TYPE_DISPLAYPORT = 32,
+ DISPLAY_CONNECTION_TYPE_NETWORK = 64,
+ DISPLAY_CONNECTION_TYPE_VIRTUAL = 128,
+
+ // Update this when adding a new type.
+ DISPLAY_CONNECTION_TYPE_LAST = DISPLAY_CONNECTION_TYPE_VIRTUAL
+};
+
+// 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;
+ string sys_path;
+ array<display.mojom.DisplayMode> modes;
+ array<uint8> edid;
+ int64 current_mode_index;
+ int64 native_mode_index;
+ int64 product_id;
+};

Powered by Google App Engine
This is Rietveld 408576698