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

Unified Diff: ui/display/mojo/display_struct_traits.cc

Issue 2894763003: Updates display.mojom to include more of Display (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « ui/display/mojo/display_struct_traits.h ('k') | ui/display/mojo/display_struct_traits_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/mojo/display_struct_traits.cc
diff --git a/ui/display/mojo/display_struct_traits.cc b/ui/display/mojo/display_struct_traits.cc
index 0f5766fbad9dba63b4826f3cb04765515eb536b3..d7d11b831611e7456164e86b17d479f7244cfaf4 100644
--- a/ui/display/mojo/display_struct_traits.cc
+++ b/ui/display/mojo/display_struct_traits.cc
@@ -85,6 +85,9 @@ bool StructTraits<display::mojom::DisplayDataView, display::Display>::Read(
if (!data.ReadBounds(&out->bounds_))
return false;
+ if (!data.ReadSizeInPixels(&out->size_in_pixels_))
+ return false;
+
if (!data.ReadWorkArea(&out->work_area_))
return false;
@@ -99,6 +102,10 @@ bool StructTraits<display::mojom::DisplayDataView, display::Display>::Read(
if (!data.ReadMaximumCursorSize(&out->maximum_cursor_size_))
return false;
+ out->set_color_depth(data.color_depth());
+ out->set_depth_per_component(data.depth_per_component());
+ out->set_is_monochrome(data.is_monochrome());
+
return true;
}
« no previous file with comments | « ui/display/mojo/display_struct_traits.h ('k') | ui/display/mojo/display_struct_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698