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

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: Fix initialiser order. Created 4 years, 7 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
« no previous file with comments | « no previous file | content/common/drag_traits.h » ('j') | no next file with comments »
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 0d0235834ddbe0b1224750dee71d58c41f2861b7..6ffc3c31240d52aa93751bff8f6c3840b2a423dc 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -804,17 +804,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698