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

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

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
Index: ui/display/mojo/display_type_converters.cc
diff --git a/ui/display/mojo/display_type_converters.cc b/ui/display/mojo/display_type_converters.cc
index 492c040524db4075df86757740a312e2498a0290..b10928d694984d94ba221f8debb4c52ccd30f7ea 100644
--- a/ui/display/mojo/display_type_converters.cc
+++ b/ui/display/mojo/display_type_converters.cc
@@ -5,7 +5,6 @@
#include "ui/display/mojo/display_type_converters.h"
#include "ui/display/display.h"
-#include "ui/gfx/geometry/mojo/geometry_type_converters.h"
namespace mojo {
@@ -17,8 +16,8 @@ TypeConverter<display::Display, mus::mojom::DisplayPtr>::Convert(
return display::Display();
display::Display result(input->id);
- gfx::Rect pixel_bounds = input->bounds.To<gfx::Rect>();
- gfx::Rect pixel_work_area = input->work_area.To<gfx::Rect>();
+ gfx::Rect pixel_bounds = input->bounds;
+ gfx::Rect pixel_work_area = input->work_area;
float pixel_ratio = input->device_pixel_ratio;
gfx::Rect dip_bounds =

Powered by Google App Engine
This is Rietveld 408576698