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

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: 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 663b2f90dc13e408e9e12981b9e3db769eeca64e..cd36176fa0c39681bfb4fc90810034bbdfd46bf7 100644
--- a/ui/views/mus/screen_mus.cc
+++ b/ui/views/mus/screen_mus.cc
@@ -4,7 +4,6 @@
#include "ui/views/mus/screen_mus.h"
-#include "mojo/converters/geometry/geometry_type_converters.h"
#include "services/shell/public/cpp/connection.h"
#include "services/shell/public/cpp/connector.h"
#include "ui/aura/window.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