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

Unified Diff: third_party/WebKit/Source/core/page/DragController.cpp

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)
Patch Set: Rebased. More fixes. 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/renderer/render_widget.cc ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/page/DragController.cpp
diff --git a/third_party/WebKit/Source/core/page/DragController.cpp b/third_party/WebKit/Source/core/page/DragController.cpp
index dab1f265a1cfb62ed8376d92624c8041b4aad96d..8f343e53aa4eec7910dd7eb9037d9f4e958cfb45 100644
--- a/third_party/WebKit/Source/core/page/DragController.cpp
+++ b/third_party/WebKit/Source/core/page/DragController.cpp
@@ -1150,13 +1150,10 @@ void DragController::doSystemDrag(DragImage* image,
DataTransfer* dataTransfer,
LocalFrame* frame,
bool forLink) {
- // TODO(dcheng): Drag and drop is not yet supported for OOPI.
- if (m_page->mainFrame()->isRemoteFrame())
- return;
m_didInitiateDrag = true;
m_dragInitiator = frame->document();
- LocalFrame* mainFrame = m_page->deprecatedLocalMainFrame();
+ LocalFrame* mainFrame = frame->localFrameRoot();
FrameView* mainFrameView = mainFrame->view();
IntPoint adjustedDragLocation = mainFrameView->rootFrameToContents(
frame->view()->contentsToRootFrame(dragLocation));
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698