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

Issue 2505113002: Drag-and-drop: Target drag messages to specific RenderWidgets. (Closed)

Created:
4 years, 1 month ago by paulmeyer
Modified:
4 years, 1 month ago
Reviewers:
ncarter (slow), dcheng
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, mac-reviews_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Drag-and-drop: Target drag messages to specific RenderWidgets. This patch allows drag messages (like dragEnter, dragOver, dragEnd, etc.) to be routed to the specific RenderWidgets they affect (rather than always to the main frame widget). This is part of an ongoing effort to allow D&D to work with out-of-process iframes. BUG=647249, 655063 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/c82b174cd84e9749ec642bfd5bc7805a41d6af0b Cr-Commit-Position: refs/heads/master@{#432688}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed comments by nick@. #

Patch Set 3 : Small fix. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -78 lines) Patch
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate_view.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 3 chunks +5 lines, -11 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_contents_view_android.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_android.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_aura.h View 1 4 chunks +15 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 9 chunks +60 lines, -29 lines 2 comments Download
M content/browser/web_contents/web_contents_view_child_frame.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_child_frame.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_guest.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_guest.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_view_mac.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_mac.mm View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_mus.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_mus.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/public/browser/render_widget_host.h View 1 chunk +4 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 33 (25 generated)
paulmeyer
4 years, 1 month ago (2016-11-16 21:11:57 UTC) #18
ncarter (slow)
https://codereview.chromium.org/2505113002/diff/40001/content/browser/renderer_host/render_view_host_delegate_view.h File content/browser/renderer_host/render_view_host_delegate_view.h (right): https://codereview.chromium.org/2505113002/diff/40001/content/browser/renderer_host/render_view_host_delegate_view.h#newcode31 content/browser/renderer_host/render_view_host_delegate_view.h:31: // use the default WebContentsView implementations. Let's delete the ...
4 years, 1 month ago (2016-11-16 22:31:24 UTC) #22
paulmeyer
PTAL https://codereview.chromium.org/2505113002/diff/40001/content/browser/renderer_host/render_view_host_delegate_view.h File content/browser/renderer_host/render_view_host_delegate_view.h (right): https://codereview.chromium.org/2505113002/diff/40001/content/browser/renderer_host/render_view_host_delegate_view.h#newcode31 content/browser/renderer_host/render_view_host_delegate_view.h:31: // use the default WebContentsView implementations. On 2016/11/16 ...
4 years, 1 month ago (2016-11-16 22:44:21 UTC) #24
ncarter (slow)
lgtm
4 years, 1 month ago (2016-11-16 22:57:07 UTC) #25
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/2505113002/100001
4 years, 1 month ago (2016-11-16 22:58:36 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 1 month ago (2016-11-17 01:46:08 UTC) #29
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c82b174cd84e9749ec642bfd5bc7805a41d6af0b Cr-Commit-Position: refs/heads/master@{#432688}
4 years, 1 month ago (2016-11-17 01:48:32 UTC) #31
dcheng
4 years, 1 month ago (2016-11-20 20:03:46 UTC) #33
Message was sent while issue was closed.
(Missed this CL originally, but similar comments to the Mac one)

Also, do we need to do anything for Android?

https://codereview.chromium.org/2505113002/diff/100001/content/browser/web_co...
File content/browser/web_contents/web_contents_view_aura.cc (right):

https://codereview.chromium.org/2505113002/diff/100001/content/browser/web_co...
content/browser/web_contents/web_contents_view_aura.cc:576:
drag_start_rwh_->DragSourceEndedAt(client_loc, screen_loc, ops);
As mentioned on the Mac CL, we should consolidate this to all be handled by
WebContentsImpl.

https://codereview.chromium.org/2505113002/diff/100001/content/browser/web_co...
content/browser/web_contents/web_contents_view_aura.cc:1171:
OnDragEntered(event);
And similarly, we need to figure out how to do this without calling the
delegates multiple times. It might be a simple matter of checking if
current_rwh_for_drag_ is already non-null.

Powered by Google App Engine
This is Rietveld 408576698