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

Unified Diff: chrome/browser/tab_contents/web_drag_source.cc

Issue 149038: Fix for pressing escape during a drag and drop operation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_contents/web_drag_source.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/web_drag_source.cc
===================================================================
--- chrome/browser/tab_contents/web_drag_source.cc (revision 19334)
+++ chrome/browser/tab_contents/web_drag_source.cc (working copy)
@@ -39,6 +39,14 @@
render_view_host_(render_view_host) {
}
+void WebDragSource::OnDragSourceCancel() {
+ gfx::Point client;
+ gfx::Point screen;
+ GetCursorPositions(source_wnd_, &client, &screen);
+ render_view_host_->DragSourceEndedAt(client.x(), client.y(),
+ screen.x(), screen.y());
+}
+
void WebDragSource::OnDragSourceDrop() {
gfx::Point client;
gfx::Point screen;
« no previous file with comments | « chrome/browser/tab_contents/web_drag_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698