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

Unified Diff: components/mus/ws/window_manager_state.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: components/mus/ws/window_manager_state.cc
diff --git a/components/mus/ws/window_manager_state.cc b/components/mus/ws/window_manager_state.cc
index 614e06b21b7953bbcba59bed58550336a73c7a31..8117a20cc40ee938912f037f412fd1fcb8087990 100644
--- a/components/mus/ws/window_manager_state.cc
+++ b/components/mus/ws/window_manager_state.cc
@@ -145,7 +145,7 @@ void WindowManagerState::AddSystemModalWindow(ServerWindow* window) {
mojom::DisplayPtr WindowManagerState::ToMojomDisplay() const {
mojom::DisplayPtr display_ptr = display_->ToMojomDisplay();
// TODO(sky): set work area.
- display_ptr->work_area = display_ptr->bounds.Clone();
+ display_ptr->work_area = display_ptr->bounds;
display_ptr->frame_decoration_values = frame_decoration_values_.Clone();
return display_ptr;
}
@@ -172,8 +172,6 @@ WindowManagerState::WindowManagerState(Display* display,
event_dispatcher_(this),
weak_factory_(this) {
frame_decoration_values_ = mojom::FrameDecorationValues::New();
- frame_decoration_values_->normal_client_area_insets = mojo::Insets::New();
- frame_decoration_values_->maximized_client_area_insets = mojo::Insets::New();
frame_decoration_values_->max_title_bar_button_width = 0u;
root_.reset(window_server()->CreateServerWindow(

Powered by Google App Engine
This is Rietveld 408576698