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 "ui/views/mus/drop_target_mus.h" | 5 #include "ui/views/mus/drop_target_mus.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
| 12 #include "base/memory/ptr_util.h" |
12 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" | 13 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" |
13 #include "ui/aura/client/drag_drop_client.h" | 14 #include "ui/aura/client/drag_drop_client.h" |
14 #include "ui/aura/client/drag_drop_delegate.h" | 15 #include "ui/aura/client/drag_drop_delegate.h" |
15 #include "ui/aura/mus/os_exchange_data_provider_mus.h" | 16 #include "ui/aura/mus/os_exchange_data_provider_mus.h" |
16 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
17 #include "ui/aura/window_tree_host.h" | 18 #include "ui/aura/window_tree_host.h" |
18 #include "ui/base/dragdrop/drag_drop_types.h" | 19 #include "ui/base/dragdrop/drag_drop_types.h" |
19 #include "ui/base/dragdrop/drop_target_event.h" | 20 #include "ui/base/dragdrop/drop_target_event.h" |
20 | 21 |
21 namespace views { | 22 namespace views { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 void DropTargetMus::OnDragDropDone() { | 138 void DropTargetMus::OnDragDropDone() { |
138 os_exchange_data_.reset(); | 139 os_exchange_data_.reset(); |
139 } | 140 } |
140 | 141 |
141 void DropTargetMus::OnWindowDestroyed(aura::Window* window) { | 142 void DropTargetMus::OnWindowDestroyed(aura::Window* window) { |
142 DCHECK_EQ(window, target_window_); | 143 DCHECK_EQ(window, target_window_); |
143 target_window_ = nullptr; | 144 target_window_ = nullptr; |
144 } | 145 } |
145 | 146 |
146 } // namespace views | 147 } // namespace views |
OLD | NEW |