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

Unified Diff: chrome/renderer/render_view.cc

Issue 149296: Make the cancelling of drag and drop match Safari for Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/renderer/render_view.h ('k') | webkit/glue/webview.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 20064)
+++ chrome/renderer/render_view.cc (working copy)
@@ -2442,11 +2442,15 @@
void RenderView::OnDragSourceEndedOrMoved(const gfx::Point& client_point,
const gfx::Point& screen_point,
- bool ended) {
- if (ended)
- webview()->DragSourceEndedAt(client_point, screen_point);
- else
+ bool ended, bool cancelled) {
+ if (ended) {
+ if (cancelled)
+ webview()->DragSourceCancelledAt(client_point, screen_point);
+ else
+ webview()->DragSourceEndedAt(client_point, screen_point);
+ } else {
webview()->DragSourceMovedTo(client_point, screen_point);
+ }
}
void RenderView::OnDragSourceSystemDragEnded() {
« no previous file with comments | « chrome/renderer/render_view.h ('k') | webkit/glue/webview.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698