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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 1723763002: Add WebDragData to blink::WebView::dragtargetDrop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index a0a7f6ff869862878e5ded891e03e78eb733b256..a345655d237d436d21e514ae127f4d4421db85bd 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -699,12 +699,14 @@ void RenderViewHostImpl::DragTargetDragLeave() {
Send(new DragMsg_TargetDragLeave(GetRoutingID()));
}
-void RenderViewHostImpl::DragTargetDrop(
- const gfx::Point& client_pt,
- const gfx::Point& screen_pt,
- int key_modifiers) {
- Send(new DragMsg_TargetDrop(GetRoutingID(), client_pt, screen_pt,
- key_modifiers));
+void RenderViewHostImpl::DragTargetDrop(const DropData& drop_data,
+ const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ int key_modifiers) {
+ // TODO(hush): filter the drop_data like what's done in DragTargetDragEnter if
+ // drop data is valid.
+ Send(new DragMsg_TargetDrop(GetRoutingID(), drop_data, client_pt,
+ screen_pt, key_modifiers));
}
void RenderViewHostImpl::DragSourceEndedAt(

Powered by Google App Engine
This is Rietveld 408576698