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

Issue 2396693002: Convert drag event position to root frame. (Closed)

Created:
4 years, 2 months ago by hush (inactive)
Modified:
4 years, 2 months ago
Reviewers:
Ted C, bokan, dcheng
CC:
chromium-reviews, blink-reviews, jam, kinuko+watch, darin-cc_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert drag event position to root frame. The drag event positions are in viewport's coordinates when they are passed in blink::WebView. We then need to convert these coordinates into the root frame. In this way, the page scale factor is properly factored into the coordination conversion. BUG=651626, 652789 Committed: https://crrev.com/3d4fa85236725f161e2870a69faaca75c4e2a67d Cr-Commit-Position: refs/heads/master@{#423250}

Patch Set 1 : Convert drag event position to root frame. #

Total comments: 2

Patch Set 2 : bokans comment #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -25 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 6 chunks +21 lines, -10 lines 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 33 (18 generated)
hush (inactive)
PTAL
4 years, 2 months ago (2016-10-04 22:54:49 UTC) #3
dcheng
I'm not a good reviewer for this. My only thought is that the coordinate conversion ...
4 years, 2 months ago (2016-10-04 23:08:07 UTC) #6
hush (inactive)
On 2016/10/04 23:08:07, dcheng wrote: > I'm not a good reviewer for this. My only ...
4 years, 2 months ago (2016-10-04 23:14:38 UTC) #7
bokan
https://codereview.chromium.org/2396693002/diff/20001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2396693002/diff/20001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3712 third_party/WebKit/Source/web/WebViewImpl.cpp:3712: WebPoint clientPointInRootFrame(convertDragEventPointToRootFrame(mainFrameImpl()->frameView(), IntPoint(clientPoint.x, clientPoint.y))); no need for the helper ...
4 years, 2 months ago (2016-10-04 23:47:23 UTC) #8
hush (inactive)
https://codereview.chromium.org/2396693002/diff/20001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2396693002/diff/20001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3712 third_party/WebKit/Source/web/WebViewImpl.cpp:3712: WebPoint clientPointInRootFrame(convertDragEventPointToRootFrame(mainFrameImpl()->frameView(), IntPoint(clientPoint.x, clientPoint.y))); On 2016/10/04 23:47:23, bokan wrote: ...
4 years, 2 months ago (2016-10-05 00:24:33 UTC) #11
bokan
lgtm, though I'm only an owner for Source/core
4 years, 2 months ago (2016-10-05 00:26:00 UTC) #12
bokan
On 2016/10/05 00:26:00, bokan wrote: > lgtm, though I'm only an owner for Source/core erm, ...
4 years, 2 months ago (2016-10-05 00:26:16 UTC) #13
dcheng
rs lgtm based on bokan's review
4 years, 2 months ago (2016-10-05 00:28:04 UTC) #15
hush (inactive)
Hi dcheng@ can you take a look at third_party/Webkit/public? tedchoc@: PTAL ContentViewCore.java
4 years, 2 months ago (2016-10-05 00:28:46 UTC) #17
Ted C
lgtm
4 years, 2 months ago (2016-10-05 16:14:06 UTC) #22
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/2396693002/80001
4 years, 2 months ago (2016-10-05 16:42:45 UTC) #24
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/web/WebViewImpl.cpp: While running git apply --index -3 -p1; error: patch ...
4 years, 2 months ago (2016-10-05 16:50:24 UTC) #26
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/2396693002/100001
4 years, 2 months ago (2016-10-05 17:59:53 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 2 months ago (2016-10-05 19:27:01 UTC) #31
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 19:29:00 UTC) #33
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3d4fa85236725f161e2870a69faaca75c4e2a67d
Cr-Commit-Position: refs/heads/master@{#423250}

Powered by Google App Engine
This is Rietveld 408576698