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

Issue 2655463015: Correctly set dragLeave and dragEnd coords for OOPIF drag and drop (Closed)

Created:
3 years, 10 months ago by kenrb
Modified:
3 years, 10 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, mlamouri+watch-blink_chromium.org, tfarina, jam, dcheng, dglazkov+blink, darin-cc_chromium.org, mac-reviews_chromium.org, blink-reviews, einbinder+watch-test-runner_chromium.org, kinuko+watch, blink-reviews-api_chromium.org, jochen+watch_chromium.org, site-isolation-reviews_chromium.org, pwnall
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Correctly set dragLeave and dragEnd coords for OOPIF drag and drop Currently dragLeave events triggered from the browser process always have (0, 0) set as coordinates, which is incorrect when the mouse cursor has not left the page. This patch sets the correct coordinates when the cursor moves between frames of different processes. Also, dragEnd event coordinates were not being correctly transformed before being passed to the target RenderWidgetHost. This patch applies the transform to move the coordinates into the correct coordinate space for the frame that receives the dragEnd. BUG=669695 Review-Url: https://codereview.chromium.org/2655463015 Cr-Commit-Position: refs/heads/master@{#448797} Committed: https://chromium.googlesource.com/chromium/src/+/07c272807932376eafddce27c267028b42ba6c31

Patch Set 1 #

Patch Set 2 : Mac fix #

Patch Set 3 : Mac fix, take 2 #

Patch Set 4 : Another fix #

Patch Set 5 : Plodding through red bots #

Patch Set 6 : Cleanup #

Total comments: 4

Patch Set 7 : Review comment addressed #

Patch Set 8 : Added checks for null RWH on drag end #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -42 lines) Patch
M chrome/browser/ui/views/drag_and_drop_interactive_uitest.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -8 lines 0 comments Download
M components/test_runner/event_sender.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_view_android.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 3 4 5 6 7 5 chunks +44 lines, -9 lines 0 comments Download
M content/browser/web_contents/web_drag_dest_mac.mm View 1 2 3 4 5 6 4 chunks +21 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_drag_source_mac.mm View 1 2 3 4 5 6 7 2 chunks +23 lines, -5 lines 0 comments Download
M content/common/drag_messages.h View 1 chunk +3 lines, -1 line 0 comments Download
M content/public/browser/render_widget_host.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetBase.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetBase.cpp View 1 2 3 4 5 6 7 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameWidget.h View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 54 (41 generated)
kenrb
PTAL? - lukasza for the test - dcheng for Blink
3 years, 10 months ago (2017-02-01 14:50:09 UTC) #28
Łukasz Anforowicz
On 2017/02/01 14:50:09, kenrb wrote: > PTAL? > - lukasza for the test > - ...
3 years, 10 months ago (2017-02-01 18:12:05 UTC) #29
Łukasz Anforowicz
+pwnall@ to CC
3 years, 10 months ago (2017-02-01 18:12:26 UTC) #30
kenrb
https://codereview.chromium.org/2655463015/diff/100001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/2655463015/diff/100001/content/browser/web_contents/web_contents_view_aura.cc#newcode1272 content/browser/web_contents/web_contents_view_aura.cc:1272: current_rwh_for_drag_->DragTargetDragLeave(gfx::Point(), gfx::Point()); On 2017/02/01 18:12:04, Łukasz Anforowicz wrote: > ...
3 years, 10 months ago (2017-02-01 19:53:48 UTC) #31
dcheng
https://codereview.chromium.org/2655463015/diff/100001/content/browser/web_contents/web_drag_source_mac.mm File content/browser/web_contents/web_drag_source_mac.mm (right): https://codereview.chromium.org/2655463015/diff/100001/content/browser/web_contents/web_drag_source_mac.mm#newcode312 content/browser/web_contents/web_drag_source_mac.mm:312: &transformedScreenPoint); Is it possible to have more of these ...
3 years, 10 months ago (2017-02-01 20:45:31 UTC) #32
kenrb
https://codereview.chromium.org/2655463015/diff/100001/content/browser/web_contents/web_drag_source_mac.mm File content/browser/web_contents/web_drag_source_mac.mm (right): https://codereview.chromium.org/2655463015/diff/100001/content/browser/web_contents/web_drag_source_mac.mm#newcode312 content/browser/web_contents/web_drag_source_mac.mm:312: &transformedScreenPoint); On 2017/02/01 20:45:31, dcheng wrote: > Is it ...
3 years, 10 months ago (2017-02-02 21:21:03 UTC) #35
dcheng
LGTM as-is. +avi, who might have some thoughts on the Mac utility stuff (if we ...
3 years, 10 months ago (2017-02-05 05:44:51 UTC) #39
kenrb
avi: Would you mind giving this a content owner review?
3 years, 10 months ago (2017-02-06 20:48:52 UTC) #40
Avi (use Gerrit)
lgtm stamp Refactoring utility functions is always good, but I don't have thoughts right now ...
3 years, 10 months ago (2017-02-06 20:51:06 UTC) #41
kenrb
Oops, missed one... rbyers@: Can you PTAL for a trivial change in components/test_runner?
3 years, 10 months ago (2017-02-06 21:28:19 UTC) #43
Rick Byers
On 2017/02/06 21:28:19, kenrb wrote: > Oops, missed one... > > rbyers@: Can you PTAL ...
3 years, 10 months ago (2017-02-07 18:10:50 UTC) #44
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/2655463015/140001
3 years, 10 months ago (2017-02-07 23:09:22 UTC) #51
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 23:48:55 UTC) #54
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/07c272807932376eafddce27c267...

Powered by Google App Engine
This is Rietveld 408576698