OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/simple_wm/move_event_handler.h" | 5 #include "mash/simple_wm/move_event_handler.h" |
6 | 6 |
7 #include "mash/simple_wm/move_loop.h" | 7 #include "mash/simple_wm/move_loop.h" |
8 #include "services/ui/public/interfaces/cursor.mojom.h" | 8 #include "services/ui/public/interfaces/cursor/cursor.mojom.h" |
9 #include "ui/aura/mus/window_port_mus.h" | 9 #include "ui/aura/mus/window_port_mus.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
11 #include "ui/aura/window_delegate.h" | 11 #include "ui/aura/window_delegate.h" |
12 #include "ui/base/hit_test.h" | 12 #include "ui/base/hit_test.h" |
13 #include "ui/events/event.h" | 13 #include "ui/events/event.h" |
14 | 14 |
15 namespace simple_wm { | 15 namespace simple_wm { |
16 namespace { | 16 namespace { |
17 | 17 |
18 ui::mojom::CursorType CursorForWindowComponent(int window_component) { | 18 ui::mojom::CursorType CursorForWindowComponent(int window_component) { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 move_loop_.reset(); | 112 move_loop_.reset(); |
113 event->SetHandled(); | 113 event->SetHandled(); |
114 } | 114 } |
115 | 115 |
116 void MoveEventHandler::OnWindowDestroying(aura::Window* window) { | 116 void MoveEventHandler::OnWindowDestroying(aura::Window* window) { |
117 DCHECK_EQ(window_, window); | 117 DCHECK_EQ(window_, window); |
118 Detach(); | 118 Detach(); |
119 } | 119 } |
120 | 120 |
121 } // namespace simple_wm | 121 } // namespace simple_wm |
OLD | NEW |