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

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: Change the existing API instead Created 4 years, 10 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 5aa3313f278c865aab9af9280ba91a1ab0569b27..891c3b296ba0d9a341422b86f7bb809a9918991d 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -704,13 +704,15 @@ void RenderViewHostImpl::DragTargetDragLeave() {
Send(new DragMsg_TargetDragLeave(GetRoutingID()));
}
-void RenderViewHostImpl::DragTargetDrop(
- const gfx::Point& client_pt,
- const gfx::Point& screen_pt,
- int key_modifiers) {
+void RenderViewHostImpl::DragTargetDrop(const DropData& drop_data,
+ bool is_drop_data_valid,
+ const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ int key_modifiers) {
const gfx::Point client_pt_in_viewport = ConvertDIPToViewport(client_pt);
- Send(new DragMsg_TargetDrop(GetRoutingID(), client_pt_in_viewport, screen_pt,
- key_modifiers));
+ // TODO(hush): filter the drop_data if is_drop_data_valid == true.
+ Send(new DragMsg_TargetDrop(GetRoutingID(), drop_data, is_drop_data_valid,
+ client_pt_in_viewport, screen_pt, key_modifiers));
}
void RenderViewHostImpl::DragSourceEndedAt(

Powered by Google App Engine
This is Rietveld 408576698