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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 2505113002: Drag-and-drop: Target drag messages to specific RenderWidgets. (Closed)
Patch Set: Small fix. Created 4 years, 1 month 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/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index 14e4e993b987dbb9aa05bef4535f887e3f25312a..2d9dab7a6d831978540bbb6aeb0dbd8e6aab89a3 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -514,10 +514,10 @@ void BrowserPluginGuest::DragSourceEndedAt(int client_x,
int screen_x,
int screen_y,
blink::WebDragOperation operation) {
- // TODO(paulmeyer): This will need to target the correct specific
- // RenderWidgetHost to work with OOPIFs. See crbug.com/647249.
web_contents()->GetRenderViewHost()->GetWidget()->DragSourceEndedAt(
- client_x, client_y, screen_x, screen_y, operation);
+ gfx::Point(client_x, client_y),
+ gfx::Point(screen_x, screen_y),
+ operation);
seen_embedder_drag_source_ended_at_ = true;
EndSystemDragIfApplicable();
}

Powered by Google App Engine
This is Rietveld 408576698