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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2475443003: Drag-and-drop: Move startDrag out of WebView/RenderView. (Closed)
Patch Set: Removed unneeded declarations. 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 | « content/test/test_render_view_host.cc ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index 9a15330d50765bcedde5fba60c91fe238ad266b7..767849621044c8f3201fafa471cfd6b5eb58698d 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -260,7 +260,11 @@ void ChromeClientImpl::startDragging(LocalFrame* frame,
WebDragOperationsMask mask,
const WebImage& dragImage,
const WebPoint& dragImageOffset) {
- m_webView->startDragging(frame, dragData, mask, dragImage, dragImageOffset);
+ WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame);
+ WebReferrerPolicy policy = webFrame->document().referrerPolicy();
+ m_webView->setDoingDragAndDrop(true);
+ webFrame->localRoot()->frameWidget()->client()->startDragging(
+ policy, dragData, mask, dragImage, dragImageOffset);
}
bool ChromeClientImpl::acceptsLoadDrops() const {
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698