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

Side by Side Diff: mash/wm/non_client_frame_controller.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, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mash/wm/non_client_frame_controller.h" 5 #include "mash/wm/non_client_frame_controller.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 10 matching lines...) Expand all
21 #include "mash/wm/bridge/wm_window_mus.h" 21 #include "mash/wm/bridge/wm_window_mus.h"
22 #include "mash/wm/frame/frame_border_hit_test_controller.h" 22 #include "mash/wm/frame/frame_border_hit_test_controller.h"
23 #include "mash/wm/frame/move_event_handler.h" 23 #include "mash/wm/frame/move_event_handler.h"
24 #include "mash/wm/frame/non_client_frame_view_mash.h" 24 #include "mash/wm/frame/non_client_frame_view_mash.h"
25 #include "mash/wm/property_util.h" 25 #include "mash/wm/property_util.h"
26 #include "mash/wm/shadow.h" 26 #include "mash/wm/shadow.h"
27 #include "ui/aura/layout_manager.h" 27 #include "ui/aura/layout_manager.h"
28 #include "ui/aura/window.h" 28 #include "ui/aura/window.h"
29 #include "ui/aura/window_tree_host.h" 29 #include "ui/aura/window_tree_host.h"
30 #include "ui/compositor/layer.h" 30 #include "ui/compositor/layer.h"
31 #include "ui/gfx/geometry/mojo/geometry_type_converters.h"
32 #include "ui/gfx/geometry/vector2d.h" 31 #include "ui/gfx/geometry/vector2d.h"
33 #include "ui/views/mus/native_widget_mus.h" 32 #include "ui/views/mus/native_widget_mus.h"
34 #include "ui/views/widget/widget.h" 33 #include "ui/views/widget/widget.h"
35 34
36 namespace mash { 35 namespace mash {
37 namespace wm { 36 namespace wm {
38 namespace { 37 namespace {
39 38
40 // LayoutManager associated with the window created by WindowTreeHost. Resizes 39 // LayoutManager associated with the window created by WindowTreeHost. Resizes
41 // all children of the parent to match the bounds of the parent. Additionally 40 // all children of the parent to match the bounds of the parent. Additionally
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 } 304 }
306 } 305 }
307 306
308 void NonClientFrameController::OnWindowDestroyed(mus::Window* window) { 307 void NonClientFrameController::OnWindowDestroyed(mus::Window* window) {
309 window_->RemoveObserver(this); 308 window_->RemoveObserver(this);
310 window_ = nullptr; 309 window_ = nullptr;
311 } 310 }
312 311
313 } // namespace wm 312 } // namespace wm
314 } // namespace mash 313 } // namespace mash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698