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

Issue 470833002: Add WebKit API for doing a hit-test that mimics GestureTap (Closed)

Created:
6 years, 4 months ago by hush (inactive)
Modified:
6 years, 1 month ago
CC:
blink-reviews, dglazkov+blink, jamesr, jdduke (slow)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Add WebKit API for doing a hit-test that mimics GestureTap Added blink::WebView::hitTestResultForTap to do so. blink::WebView::hitTestResultAt will be removed in a follow up patch. See also https://codereview.chromium.org/475633002/ on how chromium uses it. BUG=403865 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185063

Patch Set 1 #

Patch Set 2 : Use a separate API #

Total comments: 6

Patch Set 3 : rewrite based on Rick's comments #

Total comments: 5

Patch Set 4 : Scale tapPoint and padding by pageScaleFactor() #

Patch Set 5 : added a unit test for WebView #

Total comments: 8

Patch Set 6 : Alex's comments #

Patch Set 7 : Use hitTestResultAt in the unit tests #

Total comments: 1

Patch Set 8 : tapCount #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -13 lines) Patch
M Source/core/page/EventHandler.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 2 chunks +18 lines, -12 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
A Source/web/tests/data/hit_test.html View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M public/web/WebView.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (3 generated)
hush (inactive)
PTAL
6 years, 4 months ago (2014-08-14 17:56:49 UTC) #1
abarth-chromium
Why is the android_webview doing it's own hit testing? Is there a design doc that ...
6 years, 4 months ago (2014-08-14 20:51:03 UTC) #2
boliu
On 2014/08/14 20:51:03, abarth wrote: > Why is the android_webview doing it's own hit testing? ...
6 years, 4 months ago (2014-08-14 21:10:27 UTC) #3
abarth-chromium
On 2014/08/14 at 21:10:27, boliu wrote: > On 2014/08/14 20:51:03, abarth wrote: > > Why ...
6 years, 4 months ago (2014-08-14 22:20:25 UTC) #4
boliu
On 2014/08/14 22:20:25, abarth wrote: > On 2014/08/14 at 21:10:27, boliu wrote: > > On ...
6 years, 4 months ago (2014-08-14 23:12:59 UTC) #5
hush (inactive)
Hi Adam, Any pointers (in the code) that Blink is already doing a hit test ...
6 years, 4 months ago (2014-08-14 23:20:08 UTC) #6
abarth-chromium
I'm sorry that I don't have bandwidth to help you with this CL.
6 years, 4 months ago (2014-08-14 23:49:11 UTC) #7
jdduke (slow)
On 2014/08/14 23:20:08, hush wrote: > Any pointers (in the code) that Blink is already ...
6 years, 4 months ago (2014-08-14 23:54:19 UTC) #8
Rick Byers
On 2014/08/14 23:54:19, jdduke wrote: > On 2014/08/14 23:20:08, hush wrote: > > Any pointers ...
6 years, 4 months ago (2014-08-15 16:29:48 UTC) #9
boliu
On 2014/08/15 16:29:48, Rick Byers wrote: > On 2014/08/14 23:54:19, jdduke wrote: > > On ...
6 years, 4 months ago (2014-08-15 16:57:40 UTC) #10
hush (inactive)
To sum up a little: 1. EventHandler::handleTouchEvent is not always reached because it could be ...
6 years, 4 months ago (2014-08-15 18:17:03 UTC) #11
abarth-chromium
It's not clear to me whether we should land this hacky approach or whether we ...
6 years, 4 months ago (2014-08-15 18:24:06 UTC) #12
blink-reviews
This bug is not a regression and it was reported in January, so it is ...
6 years, 4 months ago (2014-08-15 18:36:25 UTC) #13
abarth-chromium
Let's wait then.
6 years, 4 months ago (2014-08-15 18:39:20 UTC) #14
Rick Byers
On 2014/08/15 18:17:03, hush wrote: > To sum up a little: > 1. EventHandler::handleTouchEvent is ...
6 years, 4 months ago (2014-08-15 20:13:30 UTC) #15
Rick Byers
By the way, if you're interested in more details/demos of how touch adjustment behaves - ...
6 years, 4 months ago (2014-08-15 20:19:10 UTC) #16
hush (inactive)
Thanks for Rick for the comments! From android webview's perspective, it just needs to call ...
6 years, 4 months ago (2014-08-15 21:35:36 UTC) #17
Rick Byers
On 2014/08/15 21:35:36, hush wrote: > Thanks for Rick for the comments! > From android ...
6 years, 4 months ago (2014-08-18 16:39:33 UTC) #18
Rick Byers
If we're more principled with the approach, I think we can proceed down this path ...
6 years, 1 month ago (2014-10-27 21:59:36 UTC) #19
Rick Byers
On 2014/10/27 21:59:36, Rick Byers (Slow until 10-30) wrote: > If we're more principled with ...
6 years, 1 month ago (2014-10-27 23:39:33 UTC) #20
hush (inactive)
https://codereview.chromium.org/470833002/diff/20001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/470833002/diff/20001/Source/web/WebViewImpl.cpp#newcode3250 Source/web/WebViewImpl.cpp:3250: { On 2014/10/27 21:59:35, Rick Byers (Slow until 10-30) ...
6 years, 1 month ago (2014-10-28 22:48:16 UTC) #21
hush (inactive)
PTAL! https://codereview.chromium.org/470833002/diff/40001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/470833002/diff/40001/Source/web/WebViewImpl.cpp#newcode4071 Source/web/WebViewImpl.cpp:4071: // EventHandler does not care about the global ...
6 years, 1 month ago (2014-10-28 22:52:25 UTC) #22
hush (inactive)
PS4: Sorry I missed the scaling logic in PS3. EventHandler::hitTestResultForGestureEvent eventually calls EventHandler::hitTestResultAtPoint. The latter ...
6 years, 1 month ago (2014-11-04 03:06:29 UTC) #23
Rick Byers
Sorry for the delay - I've been (and still am) travelling. This looks good - ...
6 years, 1 month ago (2014-11-04 06:09:19 UTC) #25
hush (inactive)
https://codereview.chromium.org/470833002/diff/40001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/470833002/diff/40001/Source/web/WebViewImpl.cpp#newcode4071 Source/web/WebViewImpl.cpp:4071: // EventHandler does not care about the global position. ...
6 years, 1 month ago (2014-11-04 22:42:39 UTC) #26
hush (inactive)
Added a new hit_test.html file for the unit test. Please note that I have to ...
6 years, 1 month ago (2014-11-04 22:52:09 UTC) #27
Rick Byers
On 2014/11/04 22:52:09, hush wrote: > Added a new hit_test.html file for the unit test. ...
6 years, 1 month ago (2014-11-07 03:33:47 UTC) #28
Rick Byers
+aelias for Source/web OWNERS https://codereview.chromium.org/470833002/diff/100001/Source/web/tests/WebViewTest.cpp File Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/470833002/diff/100001/Source/web/tests/WebViewTest.cpp#newcode417 Source/web/tests/WebViewTest.cpp:417: WebHitTestResult negativeResult = toWebViewImpl(webView)->coreHitTestResultAt(hitPoint); nit: ...
6 years, 1 month ago (2014-11-07 03:34:26 UTC) #30
aelias_OOO_until_Jul13
https://codereview.chromium.org/470833002/diff/100001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/470833002/diff/100001/Source/web/WebViewImpl.cpp#newcode4072 Source/web/WebViewImpl.cpp:4072: scaledTapPoint.scale(1 / pageScaleFactor(), 1 / pageScaleFactor()); Could you use ...
6 years, 1 month ago (2014-11-07 03:41:37 UTC) #31
hush (inactive)
https://codereview.chromium.org/470833002/diff/100001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/470833002/diff/100001/Source/web/WebViewImpl.cpp#newcode4072 Source/web/WebViewImpl.cpp:4072: scaledTapPoint.scale(1 / pageScaleFactor(), 1 / pageScaleFactor()); On 2014/11/07 03:41:37, ...
6 years, 1 month ago (2014-11-07 19:13:37 UTC) #32
aelias_OOO_until_Jul13
https://codereview.chromium.org/470833002/diff/100001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/470833002/diff/100001/Source/web/WebViewImpl.cpp#newcode4072 Source/web/WebViewImpl.cpp:4072: scaledTapPoint.scale(1 / pageScaleFactor(), 1 / pageScaleFactor()); On 2014/11/07 19:13:37, ...
6 years, 1 month ago (2014-11-07 22:38:13 UTC) #33
hush (inactive)
https://codereview.chromium.org/470833002/diff/100001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/470833002/diff/100001/Source/web/WebViewImpl.cpp#newcode4072 Source/web/WebViewImpl.cpp:4072: scaledTapPoint.scale(1 / pageScaleFactor(), 1 / pageScaleFactor()); On 2014/11/07 22:38:13, ...
6 years, 1 month ago (2014-11-07 23:38:42 UTC) #34
aelias_OOO_until_Jul13
Source/web lgtm
6 years, 1 month ago (2014-11-08 00:07:06 UTC) #35
Rick Byers
> On 2014/11/07 03:34:25, Rick Byers (OOO 11-7) wrote: > > nit: why change these? ...
6 years, 1 month ago (2014-11-10 18:43:56 UTC) #36
hush (inactive)
On 2014/11/10 18:43:56, Rick Byers wrote: > > On 2014/11/07 03:34:25, Rick Byers (OOO 11-7) ...
6 years, 1 month ago (2014-11-10 19:10:48 UTC) #37
Rick Byers
lgtm with nit https://codereview.chromium.org/470833002/diff/140001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/470833002/diff/140001/Source/web/WebViewImpl.cpp#newcode4078 Source/web/WebViewImpl.cpp:4078: tapEvent.data.tap.width = tapArea.width; nit: set tapEvent.data.tap.tapCount ...
6 years, 1 month ago (2014-11-10 20:09:59 UTC) #38
hush (inactive)
On 2014/11/10 20:09:59, Rick Byers wrote: > lgtm with nit > > https://codereview.chromium.org/470833002/diff/140001/Source/web/WebViewImpl.cpp > File ...
6 years, 1 month ago (2014-11-10 20:21:52 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/470833002/160001
6 years, 1 month ago (2014-11-10 20:23:24 UTC) #41
commit-bot: I haz the power
6 years, 1 month ago (2014-11-10 21:30:08 UTC) #42
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as 185063

Powered by Google App Engine
This is Rietveld 408576698