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

Side by Side Diff: ui/views/drag_utils_aura.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
« no previous file with comments | « ui/views/corewm/tooltip_controller.cc ('k') | ui/views/mus/drag_drop_client_mus.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/drag_utils.h" 5 #include "ui/views/drag_utils.h"
6 6
7 #include "ui/aura/client/drag_drop_client.h"
7 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
8 #include "ui/aura/window_event_dispatcher.h" 9 #include "ui/aura/window_event_dispatcher.h"
9 #include "ui/wm/core/coordinate_conversion.h" 10 #include "ui/wm/core/coordinate_conversion.h"
10 #include "ui/wm/public/drag_drop_client.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 void RunShellDrag(gfx::NativeView view, 14 void RunShellDrag(gfx::NativeView view,
15 const ui::OSExchangeData& data, 15 const ui::OSExchangeData& data,
16 const gfx::Point& location, 16 const gfx::Point& location,
17 int operation, 17 int operation,
18 ui::DragDropTypes::DragEventSource source) { 18 ui::DragDropTypes::DragEventSource source) {
19 gfx::Point screen_location(location); 19 gfx::Point screen_location(location);
20 wm::ConvertPointToScreen(view, &screen_location); 20 wm::ConvertPointToScreen(view, &screen_location);
21 aura::Window* root_window = view->GetRootWindow(); 21 aura::Window* root_window = view->GetRootWindow();
22 if (aura::client::GetDragDropClient(root_window)) { 22 if (aura::client::GetDragDropClient(root_window)) {
23 aura::client::GetDragDropClient(root_window)->StartDragAndDrop( 23 aura::client::GetDragDropClient(root_window)->StartDragAndDrop(
24 data, root_window, view, screen_location, operation, source); 24 data, root_window, view, screen_location, operation, source);
25 } 25 }
26 } 26 }
27 27
28 } // namespace views 28 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/corewm/tooltip_controller.cc ('k') | ui/views/mus/drag_drop_client_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698