diff options
author | pkotwicz <pkotwicz@chromium.org> | 2015-02-24 13:16:05 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-24 21:17:05 +0000 |
commit | deb3f7248b8a7f7ed92b1cd4eaa7fb8df4645efc (patch) | |
tree | 8d245daf790fa78f98a033b774fb85fdc11e507c /ui/wm | |
parent | c2c7d0fb617e4192ffc88e1634183354956bcc13 (diff) | |
download | chromium_src-deb3f7248b8a7f7ed92b1cd4eaa7fb8df4645efc.zip chromium_src-deb3f7248b8a7f7ed92b1cd4eaa7fb8df4645efc.tar.gz chromium_src-deb3f7248b8a7f7ed92b1cd4eaa7fb8df4645efc.tar.bz2 |
Pass location in screen coordinates to DragDropClient::StartDragAndDrop()
This CL:
- Avoids converting from screen coordinates in
WebContentsViewAura::StartDragging() and back to screen coordinates in
DragDropController::StartDragAndDrop()
- Passes the location in the correct coordinates to StartDragAndDrop() in
DragDownloadItem() in drag_download_item_views.cc
BUG=456619
TEST=Manual, see bug
Review URL: https://codereview.chromium.org/901563005
Cr-Commit-Position: refs/heads/master@{#317888}
Diffstat (limited to 'ui/wm')
-rw-r--r-- | ui/wm/public/drag_drop_client.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/wm/public/drag_drop_client.h b/ui/wm/public/drag_drop_client.h index 62a2355..e9989a5 100644 --- a/ui/wm/public/drag_drop_client.h +++ b/ui/wm/public/drag_drop_client.h @@ -28,12 +28,12 @@ class AURA_EXPORT DragDropClient { virtual ~DragDropClient() {} // Initiates a drag and drop session. Returns the drag operation that was - // applied at the end of the drag drop session. |root_location| is in the - // root Window's coordinate system. + // applied at the end of the drag drop session. |screen_location| is in + // screen coordinates. virtual int StartDragAndDrop(const ui::OSExchangeData& data, aura::Window* root_window, aura::Window* source_window, - const gfx::Point& root_location, + const gfx::Point& screen_location, int operation, ui::DragDropTypes::DragEventSource source) = 0; |