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

Unified Diff: components/plugins/renderer/webview_plugin.cc

Issue 2501213002: Drag-and-drop: dragSourceEndedAt, dragSourceSystemDragEnded (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | components/test_runner/event_sender.cc » ('j') | content/renderer/render_widget.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/webview_plugin.cc
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
index 4cba2c158b41c5312412aadaeed608c781c7fc1f..8cfcad816d16ab3f23972b3c1db9afeb486370c7 100644
--- a/components/plugins/renderer/webview_plugin.cc
+++ b/components/plugins/renderer/webview_plugin.cc
@@ -245,7 +245,9 @@ void WebViewPlugin::startDragging(blink::WebReferrerPolicy,
const WebImage&,
const WebPoint&) {
// Immediately stop dragging.
- web_view_->dragSourceSystemDragEnded();
+ DCHECK(web_view_->mainFrame()->isWebLocalFrame());
+ web_view_->mainFrame()->toWebLocalFrame()->frameWidget()->
+ dragSourceSystemDragEnded();
}
bool WebViewPlugin::allowsBrokenNullLayerTreeView() const {
« no previous file with comments | « no previous file | components/test_runner/event_sender.cc » ('j') | content/renderer/render_widget.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698