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

Issue 2860663006: Remove WebTouchEvent from TouchEventManager APIs (Closed)

Created:
3 years, 7 months ago by Navid Zolghadr
Modified:
3 years, 5 months ago
CC:
chromium-reviews, blink-reviews, dglazkov+blink, dtapuska+blinkwatch_chromium.org, blink-reviews-api_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove WebTouchEvent from TouchEventManager APIs This is the first CL to migrate the touch event paths to pointerevents. BUG=625841 Review-Url: https://codereview.chromium.org/2860663006 Cr-Commit-Position: refs/heads/master@{#481655} Committed: https://chromium.googlesource.com/chromium/src/+/8af61ebffa92e8d012cb0a9046bcf91aa7762ece

Patch Set 1 #

Total comments: 8

Patch Set 2 : Redo the whole change #

Patch Set 3 : Address comments and fix a test #

Patch Set 4 : Fix more tests #

Total comments: 26

Patch Set 5 : Apply the comments #

Total comments: 32

Patch Set 6 : Rebase #

Patch Set 7 : Apply more comments #

Patch Set 8 : Fix some DCHECKs #

Total comments: 5

Patch Set 9 : Handle the cases for inconsitent inputs #

Total comments: 13

Patch Set 10 : Rename a few functions/vars #

Total comments: 2

Patch Set 11 : Add TODO for clarification of the fields #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+713 lines, -301 lines) Patch
M third_party/WebKit/Source/core/input/PointerEventManager.cpp View 1 2 3 4 5 6 7 8 4 chunks +33 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/input/TouchEventManager.h View 1 2 3 4 5 6 7 8 9 3 chunks +55 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/core/input/TouchEventManager.cpp View 1 2 3 4 5 6 7 8 9 16 chunks +415 lines, -225 lines 2 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/WebPointerEvent.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +67 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp View 1 2 3 4 5 6 1 chunk +50 lines, -26 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebInputEvent.h View 1 2 3 4 5 6 4 chunks +21 lines, -3 lines 0 comments Download
A third_party/WebKit/public/platform/WebPointerEvent.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +66 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebTouchPoint.h View 1 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 80 (55 generated)
Navid Zolghadr
Do you think this is a good enough temporary approach for unblocking the ppapi?
3 years, 7 months ago (2017-05-04 20:46:21 UTC) #4
use mustaq_at_chromium.org
Here are my comments for now: https://codereview.chromium.org/2860663006/diff/1/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/2860663006/diff/1/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode51 third_party/WebKit/Source/core/input/PointerEventManager.cpp:51: WebPointerEvent CreateWebPointerEventFromTouchPoint( We ...
3 years, 7 months ago (2017-05-08 17:07:31 UTC) #8
Navid Zolghadr
ptal https://codereview.chromium.org/2860663006/diff/1/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/2860663006/diff/1/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode51 third_party/WebKit/Source/core/input/PointerEventManager.cpp:51: WebPointerEvent CreateWebPointerEventFromTouchPoint( On 2017/05/08 17:07:30, use mustaq_at_chromium.org wrote: ...
3 years, 6 months ago (2017-06-08 16:38:26 UTC) #17
mustaq
Here are my comments so far. I am not done with checking TEM yet. https://codereview.chromium.org/2860663006/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp ...
3 years, 6 months ago (2017-06-08 20:02:53 UTC) #20
Navid Zolghadr
ptal https://codereview.chromium.org/2860663006/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/2860663006/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode427 third_party/WebKit/Source/core/input/PointerEventManager.cpp:427: if (pointer_event_target.target_node && pointer_event_target.target_frame && On 2017/06/08 20:02:52, ...
3 years, 6 months ago (2017-06-08 21:18:41 UTC) #22
mustaq
This looks great. I have a few more cleanup/documentation requests. Any thought how we are ...
3 years, 6 months ago (2017-06-09 16:12:29 UTC) #30
Navid Zolghadr
ptal https://codereview.chromium.org/2860663006/diff/80001/third_party/WebKit/Source/core/input/TouchEventManager.cpp File third_party/WebKit/Source/core/input/TouchEventManager.cpp (right): https://codereview.chromium.org/2860663006/diff/80001/third_party/WebKit/Source/core/input/TouchEventManager.cpp#newcode210 third_party/WebKit/Source/core/input/TouchEventManager.cpp:210: web_touch_point.radius_x = touch_pointer_event.width; On 2017/06/09 16:12:27, mustaq wrote: ...
3 years, 6 months ago (2017-06-12 16:17:32 UTC) #33
mustaq
Looks good, thanks. I will do a final pass after the tests are okay. https://codereview.chromium.org/2860663006/diff/140001/third_party/WebKit/Source/core/input/PointerEventManager.cpp ...
3 years, 6 months ago (2017-06-13 15:15:24 UTC) #41
Navid Zolghadr
https://codereview.chromium.org/2860663006/diff/140001/third_party/WebKit/Source/core/input/TouchEventManager.cpp File third_party/WebKit/Source/core/input/TouchEventManager.cpp (right): https://codereview.chromium.org/2860663006/diff/140001/third_party/WebKit/Source/core/input/TouchEventManager.cpp#newcode318 third_party/WebKit/Source/core/input/TouchEventManager.cpp:318: DCHECK_EQ(event_type, web_pointer_event.GetType()); On 2017/06/13 15:15:24, mustaq wrote: > Any ...
3 years, 6 months ago (2017-06-13 15:19:08 UTC) #42
Navid Zolghadr
ptal. https://codereview.chromium.org/2860663006/diff/140001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/2860663006/diff/140001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode368 third_party/WebKit/Source/core/input/PointerEventManager.cpp:368: return touch_event_manager_->FlushEvents(); On 2017/06/13 15:15:24, mustaq wrote: > ...
3 years, 6 months ago (2017-06-13 19:31:17 UTC) #49
Navid Zolghadr
On 2017/06/13 19:31:17, Navid Zolghadr wrote: > ptal. > > https://codereview.chromium.org/2860663006/diff/140001/third_party/WebKit/Source/core/input/PointerEventManager.cpp > File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): ...
3 years, 6 months ago (2017-06-15 15:26:55 UTC) #52
mustaq
lgtm
3 years, 6 months ago (2017-06-15 16:20:12 UTC) #53
Navid Zolghadr
On 2017/06/15 16:20:12, mustaq wrote: > lgtm Dave, do you think this is good enough ...
3 years, 6 months ago (2017-06-19 19:11:04 UTC) #54
dtapuska
https://codereview.chromium.org/2860663006/diff/160001/third_party/WebKit/Source/core/input/TouchEventManager.cpp File third_party/WebKit/Source/core/input/TouchEventManager.cpp (right): https://codereview.chromium.org/2860663006/diff/160001/third_party/WebKit/Source/core/input/TouchEventManager.cpp#newcode90 third_party/WebKit/Source/core/input/TouchEventManager.cpp:90: web_touch_point.radius_x = web_pointer_event.width; I'm not sure we can break ...
3 years, 6 months ago (2017-06-20 16:17:21 UTC) #55
Navid Zolghadr
https://codereview.chromium.org/2860663006/diff/160001/third_party/WebKit/Source/core/input/TouchEventManager.cpp File third_party/WebKit/Source/core/input/TouchEventManager.cpp (right): https://codereview.chromium.org/2860663006/diff/160001/third_party/WebKit/Source/core/input/TouchEventManager.cpp#newcode90 third_party/WebKit/Source/core/input/TouchEventManager.cpp:90: web_touch_point.radius_x = web_pointer_event.width; On 2017/06/20 16:17:21, dtapuska wrote: > ...
3 years, 6 months ago (2017-06-20 16:33:00 UTC) #56
dtapuska
https://codereview.chromium.org/2860663006/diff/160001/third_party/WebKit/Source/core/input/TouchEventManager.cpp File third_party/WebKit/Source/core/input/TouchEventManager.cpp (right): https://codereview.chromium.org/2860663006/diff/160001/third_party/WebKit/Source/core/input/TouchEventManager.cpp#newcode90 third_party/WebKit/Source/core/input/TouchEventManager.cpp:90: web_touch_point.radius_x = web_pointer_event.width; On 2017/06/20 16:33:00, Navid Zolghadr wrote: ...
3 years, 6 months ago (2017-06-20 16:44:04 UTC) #57
Navid Zolghadr
ptal https://codereview.chromium.org/2860663006/diff/160001/third_party/WebKit/Source/core/input/TouchEventManager.cpp File third_party/WebKit/Source/core/input/TouchEventManager.cpp (right): https://codereview.chromium.org/2860663006/diff/160001/third_party/WebKit/Source/core/input/TouchEventManager.cpp#newcode310 third_party/WebKit/Source/core/input/TouchEventManager.cpp:310: touch_point_attribute->coalesced_events_) On 2017/06/20 16:44:03, dtapuska wrote: > On ...
3 years, 6 months ago (2017-06-20 17:59:15 UTC) #60
dtapuska
On 2017/06/20 17:59:15, Navid Zolghadr wrote: > ptal > > https://codereview.chromium.org/2860663006/diff/160001/third_party/WebKit/Source/core/input/TouchEventManager.cpp > File third_party/WebKit/Source/core/input/TouchEventManager.cpp (right): ...
3 years, 6 months ago (2017-06-21 14:38:01 UTC) #63
Navid Zolghadr
rbyers@chromium.org: Please review changes in third_party/WebKit/public/*
3 years, 6 months ago (2017-06-21 14:40:26 UTC) #65
Rick Byers
LGTM with nit https://codereview.chromium.org/2860663006/diff/180001/third_party/WebKit/public/platform/WebPointerEvent.h File third_party/WebKit/public/platform/WebPointerEvent.h (right): https://codereview.chromium.org/2860663006/diff/180001/third_party/WebKit/public/platform/WebPointerEvent.h#newcode30 third_party/WebKit/public/platform/WebPointerEvent.h:30: float width; nit: please add comments ...
3 years, 6 months ago (2017-06-21 15:03:27 UTC) #66
Navid Zolghadr
https://codereview.chromium.org/2860663006/diff/180001/third_party/WebKit/public/platform/WebPointerEvent.h File third_party/WebKit/public/platform/WebPointerEvent.h (right): https://codereview.chromium.org/2860663006/diff/180001/third_party/WebKit/public/platform/WebPointerEvent.h#newcode30 third_party/WebKit/public/platform/WebPointerEvent.h:30: float width; On 2017/06/21 15:03:27, Rick Byers wrote: > ...
3 years, 6 months ago (2017-06-22 18:12:15 UTC) #69
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/2860663006/200001
3 years, 6 months ago (2017-06-22 20:38:02 UTC) #74
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://chromium.googlesource.com/chromium/src/+/8af61ebffa92e8d012cb0a9046bcf91aa7762ece
3 years, 6 months ago (2017-06-22 20:43:03 UTC) #77
jkwang
https://codereview.chromium.org/2860663006/diff/200001/third_party/WebKit/Source/core/input/TouchEventManager.cpp File third_party/WebKit/Source/core/input/TouchEventManager.cpp (right): https://codereview.chromium.org/2860663006/diff/200001/third_party/WebKit/Source/core/input/TouchEventManager.cpp#newcode362 third_party/WebKit/Source/core/input/TouchEventManager.cpp:362: last_coalesced_touch_event_.touches[i].movement_x = Why not call "CreateWebTouchPointFromWebPointerEvent(web_pointer_event, false);" here? Why ...
3 years, 5 months ago (2017-07-10 23:49:39 UTC) #79
Navid Zolghadr
3 years, 5 months ago (2017-07-11 02:21:28 UTC) #80
Message was sent while issue was closed.
https://codereview.chromium.org/2860663006/diff/200001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/input/TouchEventManager.cpp (right):

https://codereview.chromium.org/2860663006/diff/200001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/input/TouchEventManager.cpp:362:
last_coalesced_touch_event_.touches[i].movement_x =
On 2017/07/10 23:49:39, jkwang wrote:
> Why not call "CreateWebTouchPointFromWebPointerEvent(web_pointer_event,
false);"
> here?
> Why not update "PositionInWidget" and "PositionInScreen" here?

I cannot think of any reason not to. Calling
"CreateWebTouchPointFromWebPointerEvent(web_pointer_event, false)" seems to be
taking care of it all.

Powered by Google App Engine
This is Rietveld 408576698