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/aura/mus/drag_drop_controller_mus.h" | 5 #include "ui/aura/mus/drag_drop_controller_mus.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/auto_reset.h" | 11 #include "base/auto_reset.h" |
| 12 #include "base/memory/ptr_util.h" |
12 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
13 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
14 #include "services/ui/public/interfaces/window_tree.mojom.h" | 15 #include "services/ui/public/interfaces/window_tree.mojom.h" |
15 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" | 16 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" |
16 #include "ui/aura/client/drag_drop_delegate.h" | 17 #include "ui/aura/client/drag_drop_delegate.h" |
17 #include "ui/aura/mus/drag_drop_controller_host.h" | 18 #include "ui/aura/mus/drag_drop_controller_host.h" |
18 #include "ui/aura/mus/mus_types.h" | 19 #include "ui/aura/mus/mus_types.h" |
19 #include "ui/aura/mus/os_exchange_data_provider_mus.h" | 20 #include "ui/aura/mus/os_exchange_data_provider_mus.h" |
20 #include "ui/aura/mus/window_mus.h" | 21 #include "ui/aura/mus/window_mus.h" |
21 #include "ui/aura/window.h" | 22 #include "ui/aura/window.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 std::unique_ptr<ui::DropTargetEvent> event = | 205 std::unique_ptr<ui::DropTargetEvent> event = |
205 base::MakeUnique<ui::DropTargetEvent>( | 206 base::MakeUnique<ui::DropTargetEvent>( |
206 current_drag_state_ ? current_drag_state_->drag_data | 207 current_drag_state_ ? current_drag_state_->drag_data |
207 : *(os_exchange_data_.get()), | 208 : *(os_exchange_data_.get()), |
208 location, root_location, effect_bitmask); | 209 location, root_location, effect_bitmask); |
209 event->set_flags(event_flags); | 210 event->set_flags(event_flags); |
210 return event; | 211 return event; |
211 } | 212 } |
212 | 213 |
213 } // namespace aura | 214 } // namespace aura |
OLD | NEW |