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

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

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)
Patch Set: No longer using GetSiteInstance() in RenderWidgetHostImpl. 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 461081dc723d4c338a3248725dc4a7e8e8bcdde1..9606ab4132d4d1b2b222611d9aa9bc64622f7d2f 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -824,25 +824,25 @@ void BrowserPluginGuest::OnDragStatusUpdate(int browser_plugin_instance_id,
host->FilterDropData(&filtered_data);
switch (drag_status) {
case blink::WebDragStatusEnter:
- host->DragTargetDragEnter(filtered_data, location, location, mask,
- drop_data.key_modifiers);
+ host->GetWidget()->DragTargetDragEnter(filtered_data, location, location,
dcheng 2016/11/09 20:23:16 Is it worth adding a TODO here? Presumably we'll h
paulmeyer 2016/11/09 23:19:11 Done.
+ mask, drop_data.key_modifiers);
// Only track the URL being dragged over the guest if the link isn't
// coming from the guest.
if (!embedder->DragEnteredGuest(this))
ignore_dragged_url_ = false;
break;
case blink::WebDragStatusOver:
- host->DragTargetDragOver(location, location, mask,
- drop_data.key_modifiers);
+ host->GetWidget()->DragTargetDragOver(location, location, mask,
+ drop_data.key_modifiers);
break;
case blink::WebDragStatusLeave:
embedder->DragLeftGuest(this);
- host->DragTargetDragLeave();
+ host->GetWidget()->DragTargetDragLeave();
ignore_dragged_url_ = true;
break;
case blink::WebDragStatusDrop:
- host->DragTargetDrop(filtered_data, location, location,
- drop_data.key_modifiers);
+ host->GetWidget()->DragTargetDrop(filtered_data, location, location,
+ drop_data.key_modifiers);
if (!ignore_dragged_url_ && filtered_data.url.is_valid())
delegate_->DidDropLink(filtered_data.url);

Powered by Google App Engine
This is Rietveld 408576698