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

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

Issue 1411913010: Propagate drag-and-drop key modifiers to WebView's guest renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | content/common/drag_traits.h » ('j') | content/public/common/drop_data.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cef0842a37631d3a1d7493dcc42ed1bb59cca4a9..04eca8e4a440563e0c0cfeca1f7879bdadac2797 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -848,17 +848,19 @@ void BrowserPluginGuest::OnDragStatusUpdate(int browser_plugin_instance_id,
// coming from the guest.
if (!embedder->DragEnteredGuest(this))
dragged_url_ = drop_data.url;
- host->DragTargetDragEnter(drop_data, location, location, mask, 0);
+ host->DragTargetDragEnter(drop_data, location, location, mask,
+ drop_data.key_modifiers);
break;
case blink::WebDragStatusOver:
- host->DragTargetDragOver(location, location, mask, 0);
+ host->DragTargetDragOver(location, location, mask,
+ drop_data.key_modifiers);
break;
case blink::WebDragStatusLeave:
embedder->DragLeftGuest(this);
host->DragTargetDragLeave();
break;
case blink::WebDragStatusDrop:
- host->DragTargetDrop(location, location, 0);
+ host->DragTargetDrop(location, location, drop_data.key_modifiers);
if (dragged_url_.is_valid()) {
delegate_->DidDropLink(dragged_url_);
dragged_url_ = GURL();
« no previous file with comments | « no previous file | content/common/drag_traits.h » ('j') | content/public/common/drop_data.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698