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

Side by Side Diff: ui/views/mus/drop_target_mus.cc

Issue 2461493002: Moves DragDropClient to aura/client (Closed)
Patch Set: Created 4 years, 1 month 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 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 "services/ui/public/interfaces/window_tree_constants.mojom.h" 12 #include "services/ui/public/interfaces/window_tree_constants.mojom.h"
13 #include "ui/aura/client/drag_drop_client.h"
13 #include "ui/aura/window.h" 14 #include "ui/aura/window.h"
14 #include "ui/aura/window_tree_host.h" 15 #include "ui/aura/window_tree_host.h"
15 #include "ui/base/dragdrop/drag_drop_types.h" 16 #include "ui/base/dragdrop/drag_drop_types.h"
16 #include "ui/base/dragdrop/drop_target_event.h" 17 #include "ui/base/dragdrop/drop_target_event.h"
17 #include "ui/views/mus/os_exchange_data_provider_mus.h" 18 #include "ui/views/mus/os_exchange_data_provider_mus.h"
18 #include "ui/wm/public/drag_drop_client.h"
19 #include "ui/wm/public/drag_drop_delegate.h" 19 #include "ui/wm/public/drag_drop_delegate.h"
20 20
21 namespace views { 21 namespace views {
22 22
23 static_assert(ui::DragDropTypes::DRAG_NONE == ui::mojom::kDropEffectNone, 23 static_assert(ui::DragDropTypes::DRAG_NONE == ui::mojom::kDropEffectNone,
24 "Drag constants must be the same"); 24 "Drag constants must be the same");
25 static_assert(ui::DragDropTypes::DRAG_MOVE == ui::mojom::kDropEffectMove, 25 static_assert(ui::DragDropTypes::DRAG_MOVE == ui::mojom::kDropEffectMove,
26 "Drag constants must be the same"); 26 "Drag constants must be the same");
27 static_assert(ui::DragDropTypes::DRAG_COPY == ui::mojom::kDropEffectCopy, 27 static_assert(ui::DragDropTypes::DRAG_COPY == ui::mojom::kDropEffectCopy,
28 "Drag constants must be the same"); 28 "Drag constants must be the same");
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 void DropTargetMus::OnDragDropDone() { 137 void DropTargetMus::OnDragDropDone() {
138 os_exchange_data_.reset(); 138 os_exchange_data_.reset();
139 } 139 }
140 140
141 void DropTargetMus::OnWindowDestroyed(aura::Window* window) { 141 void DropTargetMus::OnWindowDestroyed(aura::Window* window) {
142 DCHECK_EQ(window, target_window_); 142 DCHECK_EQ(window, target_window_);
143 target_window_ = nullptr; 143 target_window_ = nullptr;
144 } 144 }
145 145
146 } // namespace views 146 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/mus/drag_drop_client_mus.h ('k') | ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698