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

Unified Diff: mash/wm/window_manager.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: mash/wm/window_manager.cc
diff --git a/mash/wm/window_manager.cc b/mash/wm/window_manager.cc
index 5c5be91ce84a1b5c9ce29d81670bbded62f26f23..24f5416e3770be33a7a8f44c8a7964c512c5ba99 100644
--- a/mash/wm/window_manager.cc
+++ b/mash/wm/window_manager.cc
@@ -22,7 +22,6 @@
#include "mash/wm/property_util.h"
#include "mash/wm/public/interfaces/container.mojom.h"
#include "mash/wm/root_window_controller.h"
-#include "ui/gfx/geometry/mojo/geometry_type_converters.h"
namespace mash {
namespace wm {
@@ -65,10 +64,8 @@ void WindowManager::Initialize(RootWindowController* root_controller,
mus::mojom::FrameDecorationValues::New();
const gfx::Insets client_area_insets =
NonClientFrameController::GetPreferredClientAreaInsets();
- frame_decoration_values->normal_client_area_insets =
- mojo::Insets::From(client_area_insets);
- frame_decoration_values->maximized_client_area_insets =
- mojo::Insets::From(client_area_insets);
+ frame_decoration_values->normal_client_area_insets = client_area_insets;
+ frame_decoration_values->maximized_client_area_insets = client_area_insets;
frame_decoration_values->max_title_bar_button_width =
NonClientFrameController::GetMaxTitleBarButtonWidth();
window_manager_client_->SetFrameDecorationValues(

Powered by Google App Engine
This is Rietveld 408576698