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

Unified Diff: third_party/WebKit/Source/web/tests/WebViewTest.cpp

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)
Patch Set: Addressed comments by dcheng@. 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: third_party/WebKit/Source/web/tests/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index 150046a9863941541800192f1c1d8d5de68c4648..c55605bb7d1fe500a82676739633f0084e5724d3 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -1803,9 +1803,10 @@ static void DragAndDropURL(WebViewImpl* webView, const std::string& url) {
const WebPoint clientPoint(0, 0);
const WebPoint screenPoint(0, 0);
- webView->dragTargetDragEnter(dragData, clientPoint, screenPoint,
- WebDragOperationCopy, 0);
- webView->dragTargetDrop(dragData, clientPoint, screenPoint, 0);
+ WebFrameWidgetBase* widget = webView->mainFrameImpl()->frameWidget();
+ widget->dragTargetDragEnter(dragData, clientPoint, screenPoint,
+ WebDragOperationCopy, 0);
+ widget->dragTargetDrop(dragData, clientPoint, screenPoint, 0);
FrameTestHelpers::pumpPendingRequestsForFrameToLoad(webView->mainFrame());
}

Powered by Google App Engine
This is Rietveld 408576698