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

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)

Created:
4 years, 1 month ago by paulmeyer
Modified:
4 years, 1 month ago
Reviewers:
dmazzoni, dcheng, nasko, dpapad
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dcheng, dglazkov+blink, einbinder+watch-test-runner_chromium.org, jam, jochen+watch_chromium.org, kinuko+watch, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, mlamouri+watch-test-runner_chromium.org, nasko+codewatch_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Drag-and-drop: Move DragEnter, DragOver, DragLeave, and DragDrop out of WebView/RenderView. This patch is part of the effort to transition D&D functions to all be widget-based instead of view-based. This is necessary in order to allow D&D to work with out-of-process iframes. BUG=647249, 655063 Committed: https://crrev.com/90f6c31d8095307a275eec336423e749ae6af956 Cr-Commit-Position: refs/heads/master@{#431692}

Patch Set 1 #

Patch Set 2 : Rebased. #

Total comments: 2

Patch Set 3 : Some fixes. #

Patch Set 4 : No longer using GetSiteInstance() in RenderWidgetHostImpl. #

Total comments: 16

Patch Set 5 : Addressed comments by dcheng@. #

Total comments: 10

Patch Set 6 : Some fixes, and addressed comments by nasko@. #

Patch Set 7 : Rebased. More fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+806 lines, -700 lines) Patch
M chrome/browser/ui/webui/webui_webview_browsertest.cc View 1 2 3 4 5 4 chunks +14 lines, -8 lines 0 comments Download
M components/test_runner/event_sender.h View 2 chunks +2 lines, -0 lines 0 comments Download
M components/test_runner/event_sender.cc View 7 chunks +12 lines, -7 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 1 chunk +11 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 5 2 chunks +0 lines, -31 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 5 chunks +0 lines, -193 lines 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 3 chunks +32 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 chunks +195 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_view_android.cc View 1 2 3 4 5 6 3 chunks +12 lines, -7 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 3 4 5 5 chunks +10 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_drag_dest_mac.mm View 1 2 3 4 5 5 chunks +15 lines, -5 lines 0 comments Download
M content/public/browser/render_view_host.h View 1 2 3 4 1 chunk +0 lines, -25 lines 0 comments Download
M content/public/browser/render_widget_host.h View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 2 chunks +0 lines, -18 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 8 chunks +0 lines, -177 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 3 chunks +20 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 11 chunks +198 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/page/DragController.cpp View 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetBase.h View 3 chunks +54 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/WebFrameWidgetBase.cpp View 1 2 3 4 1 chunk +136 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.h View 1 2 3 4 5 3 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewFrameWidget.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewFrameWidget.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 5 6 6 chunks +14 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 chunks +18 lines, -136 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameWidget.h View 1 2 3 4 5 3 chunks +22 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 2 3 4 5 1 chunk +0 lines, -19 lines 0 comments Download

Messages

Total messages: 50 (37 generated)
paulmeyer
+dcheng@ for general review.
4 years, 1 month ago (2016-11-08 20:51:52 UTC) #4
dcheng
https://codereview.chromium.org/2485693003/diff/40001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2485693003/diff/40001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode1807 third_party/WebKit/Source/web/tests/WebViewTest.cpp:1807: WebFrameWidget* widget = static_cast<WebFrameWidget*>(webView->widget()); Is it possible to just ...
4 years, 1 month ago (2016-11-09 20:23:17 UTC) #5
paulmeyer
PTAL https://codereview.chromium.org/2485693003/diff/40001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2485693003/diff/40001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode1807 third_party/WebKit/Source/web/tests/WebViewTest.cpp:1807: WebFrameWidget* widget = static_cast<WebFrameWidget*>(webView->widget()); On 2016/11/09 20:23:16, dcheng ...
4 years, 1 month ago (2016-11-09 23:19:11 UTC) #6
dcheng
lgtm https://codereview.chromium.org/2485693003/diff/100001/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp File third_party/WebKit/Source/web/WebFrameWidgetBase.cpp (right): https://codereview.chromium.org/2485693003/diff/100001/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp#newcode69 third_party/WebKit/Source/web/WebFrameWidgetBase.cpp:69: WebViewImpl::UserGestureNotifier notifier(view()); It's not clear to me that ...
4 years, 1 month ago (2016-11-10 07:16:21 UTC) #7
paulmeyer
+nasko for OWNER review of content/
4 years, 1 month ago (2016-11-10 14:29:48 UTC) #9
nasko
content/ looks good, but there are compile failures in unit tests. Some small comments. https://codereview.chromium.org/2485693003/diff/100001/content/browser/browser_plugin/browser_plugin_guest.cc ...
4 years, 1 month ago (2016-11-10 17:33:16 UTC) #14
paulmeyer
https://codereview.chromium.org/2485693003/diff/100001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/2485693003/diff/100001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode825 content/browser/browser_plugin/browser_plugin_guest.cc:825: // RenderWidgetHost to work with OOPIFs. On 2016/11/10 17:33:15, ...
4 years, 1 month ago (2016-11-11 23:26:49 UTC) #36
dpapad
LGTM for browser/ui/webui/webui_webview_browsertest.cc
4 years, 1 month ago (2016-11-11 23:39:31 UTC) #38
nasko
content/ LGTM!
4 years, 1 month ago (2016-11-11 23:46:01 UTC) #41
dmazzoni
components/test_runner lgtm
4 years, 1 month ago (2016-11-11 23:59:38 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2485693003/200001
4 years, 1 month ago (2016-11-12 00:04:48 UTC) #46
commit-bot: I haz the power
Committed patchset #7 (id:200001)
4 years, 1 month ago (2016-11-12 00:18:40 UTC) #48
commit-bot: I haz the power
4 years, 1 month ago (2016-11-12 00:23:39 UTC) #50
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/90f6c31d8095307a275eec336423e749ae6af956
Cr-Commit-Position: refs/heads/master@{#431692}

Powered by Google App Engine
This is Rietveld 408576698