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

Unified Diff: ui/views/mus/screen_mus.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/views/mus/screen_mus.cc
diff --git a/ui/views/mus/screen_mus.cc b/ui/views/mus/screen_mus.cc
index 681114af367063eb0802615fa1da0af68898816d..d5fe228a876f69e45e646952d576286211814520 100644
--- a/ui/views/mus/screen_mus.cc
+++ b/ui/views/mus/screen_mus.cc
@@ -10,7 +10,6 @@
#include "ui/display/display_finder.h"
#include "ui/display/display_observer.h"
#include "ui/display/mojo/display_type_converters.h"
-#include "ui/gfx/geometry/mojo/geometry_type_converters.h"
#include "ui/views/mus/screen_mus_delegate.h"
#include "ui/views/mus/window_manager_frame_values.h"
@@ -27,9 +26,8 @@ struct TypeConverter<views::WindowManagerFrameValues,
static views::WindowManagerFrameValues Convert(
const mus::mojom::FrameDecorationValuesPtr& input) {
views::WindowManagerFrameValues result;
- result.normal_insets = input->normal_client_area_insets.To<gfx::Insets>();
- result.maximized_insets =
- input->maximized_client_area_insets.To<gfx::Insets>();
+ result.normal_insets = input->normal_client_area_insets;
+ result.maximized_insets = input->maximized_client_area_insets;
result.max_title_bar_button_width = input->max_title_bar_button_width;
return result;
}

Powered by Google App Engine
This is Rietveld 408576698