summaryrefslogtreecommitdiffstats
path: root/ash/drag_drop
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-28 03:20:44 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-28 03:20:44 +0000
commit789b54ab44c9f57a8f89b4da257e27e6d63c6554 (patch)
tree05feb11037b3d41b4077dc5f912c68c9815c7847 /ash/drag_drop
parentda7584c4ac68c5828fafdedf055ae86e90bf4a3a (diff)
downloadchromium_src-789b54ab44c9f57a8f89b4da257e27e6d63c6554.zip
chromium_src-789b54ab44c9f57a8f89b4da257e27e6d63c6554.tar.gz
chromium_src-789b54ab44c9f57a8f89b4da257e27e6d63c6554.tar.bz2
Notify RenderViewHost of drag cancel
Test: 1) drag bookmark 2) Hit Alt-Tab, or Ctrl-Atl-Right BUG=None TEST=Manual Review URL: https://chromiumcodereview.appspot.com/9234079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119581 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/drag_drop')
-rw-r--r--ash/drag_drop/drag_drop_controller.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ash/drag_drop/drag_drop_controller.cc b/ash/drag_drop/drag_drop_controller.cc
index 42a58ab..7bc9025 100644
--- a/ash/drag_drop/drag_drop_controller.cc
+++ b/ash/drag_drop/drag_drop_controller.cc
@@ -150,6 +150,10 @@ void DragDropController::Drop(aura::Window* target,
void DragDropController::DragCancel() {
RootWindow::GetInstance()->SetCursor(aura::kCursorPointer);
+ aura::client::DragDropDelegate* delegate = NULL;
+ if ((delegate = aura::client::GetDragDropDelegate(dragged_window_))) {
+ delegate->OnDragExited();
+ }
Cleanup();
drag_operation_ = 0;
StartCanceledAnimation();