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

Unified Diff: ui/mojo/display/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: 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/mojo/display/display_type_converters.cc
diff --git a/ui/mojo/display/display_type_converters.cc b/ui/mojo/display/display_type_converters.cc
index bc1a55d0c3f686133c669304601360ae07150fcf..5d069c6954f0aebb0bbcc68d3f8d8c363a6ee510 100644
--- a/ui/mojo/display/display_type_converters.cc
+++ b/ui/mojo/display/display_type_converters.cc
@@ -4,7 +4,6 @@
#include "ui/mojo/display/display_type_converters.h"
-#include "mojo/converters/geometry/geometry_type_converters.h"
#include "ui/display/display.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