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

Issue 2624783002: Fix movementX/Y attributes for touch pointer events (Closed)

Created:
3 years, 11 months ago by Navid Zolghadr
Modified:
3 years, 10 months ago
Reviewers:
sadrul, dtapuska, Rick Byers, ronniewaynemcc, mustaq, tdresser
CC:
chromium-reviews, blink-reviews, lanwei
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix movementX/Y attributes for touch pointer events Keep track of previous coordinates of touch points and calculate the deltas and store them inside the WebTouchPoints. Since pointerevents have movementX/Y attributes which they expose to js this CL calculates the correct values for movementX/Y of touch pointerevents. BUG=678258 Review-Url: https://codereview.chromium.org/2624783002 Cr-Commit-Position: refs/heads/master@{#449714} Committed: https://chromium.googlesource.com/chromium/src/+/2fe7948da152f6d65725173f0ec1fa916e3a016c

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Only do the movementx/y got move events #

Patch Set 4 : Move bookkeeping of movementX/Y to the browser #

Patch Set 5 : Adding wpt automation instructions #

Patch Set 6 : Update test instructions #

Patch Set 7 : Rebase #

Patch Set 8 : Wrong push! #

Patch Set 9 : Push the correct commit again #

Patch Set 10 : Initialize m_frameScale in PointerEventFactoryTest #

Total comments: 16

Patch Set 11 : Rebase #

Patch Set 12 : Fix movementX/Y attributes for pointer events #

Patch Set 13 : Move the logic to InputRouterImpl #

Total comments: 9

Patch Set 14 : Rename to match Chromium names #

Patch Set 15 : Rebase #

Patch Set 16 : Fix MultiPointTouchPress test due to sending pressed twice #

Patch Set 17 : Fix the MultiPointTouchPress on Android #

Total comments: 2

Patch Set 18 : Wrap ForwardTouchEventWithLatencyInfo to always reset points #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -17 lines) Patch
M content/browser/renderer_host/input/input_router_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +31 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_input_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +13 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt_automation/pointerevents/pointerevent_common_input.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +24 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt_automation/pointerevents/pointerlock/pointerevent_movementxy-manual-automation.js View 1 2 3 4 5 8 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactory.cpp View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/WebTouchEvent.cpp View 1 2 3 4 5 6 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebMouseEvent.h View 1 2 3 4 5 6 8 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebPointerProperties.h View 1 2 3 4 5 6 8 1 chunk +3 lines, -0 lines 0 comments Download
M ui/events/blink/blink_event_util.cc View 1 2 3 4 5 8 1 chunk +4 lines, -1 line 0 comments Download
M ui/events/blink/blink_event_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 117 (74 generated)
Navid Zolghadr
3 years, 11 months ago (2017-01-10 17:25:58 UTC) #8
Navid Zolghadr
3 years, 11 months ago (2017-01-11 19:03:39 UTC) #12
mustaq
We need a test. A W3C test is needed anyway, but a new check in ...
3 years, 11 months ago (2017-01-11 19:55:16 UTC) #13
Navid Zolghadr
Is it okay to just have a w3c test for this? I prefer to start ...
3 years, 11 months ago (2017-01-16 18:57:23 UTC) #16
Navid Zolghadr
ptal.
3 years, 11 months ago (2017-01-16 18:57:39 UTC) #17
mustaq
On 2017/01/16 18:57:39, Navid Zolghadr wrote: > ptal. We should merge this to M56, so ...
3 years, 11 months ago (2017-01-16 20:32:58 UTC) #20
mustaq
On 2017/01/16 20:32:58, mustaq wrote: > On 2017/01/16 18:57:39, Navid Zolghadr wrote: > > ptal. ...
3 years, 11 months ago (2017-01-16 21:08:25 UTC) #21
Navid Zolghadr
rbyers@chromium.org: Please review changes in third_party/WebKit/Source/core/events/PointerEventFactory.*
3 years, 11 months ago (2017-01-16 21:10:25 UTC) #23
Rick Byers
On 2017/01/16 21:08:25, mustaq wrote: > On 2017/01/16 20:32:58, mustaq wrote: > > On 2017/01/16 ...
3 years, 11 months ago (2017-01-16 22:00:41 UTC) #24
Rick Byers
On 2017/01/16 21:08:25, mustaq wrote: > On 2017/01/16 20:32:58, mustaq wrote: > > On 2017/01/16 ...
3 years, 11 months ago (2017-01-16 22:00:41 UTC) #25
Navid Zolghadr
ptal. I had to move the whole logic back to the browser to be able ...
3 years, 11 months ago (2017-01-19 20:54:39 UTC) #28
Rick Byers
> It seems that for the new test to be added to wpt we need ...
3 years, 11 months ago (2017-01-20 15:14:15 UTC) #34
Rick Byers
On 2017/01/19 20:54:39, Navid Zolghadr wrote: > ptal. > I had to move the whole ...
3 years, 11 months ago (2017-01-20 15:19:11 UTC) #35
dtapuska
On 2017/01/20 15:19:11, Rick Byers wrote: > On 2017/01/19 20:54:39, Navid Zolghadr wrote: > > ...
3 years, 11 months ago (2017-01-20 15:25:52 UTC) #36
Navid Zolghadr
On 2017/01/20 15:14:15, Rick Byers wrote: > > It seems that for the new test ...
3 years, 11 months ago (2017-01-20 15:39:09 UTC) #37
mustaq
On 2017/01/20 15:19:11, Rick Byers wrote: > On 2017/01/19 20:54:39, Navid Zolghadr wrote: > > ...
3 years, 11 months ago (2017-01-20 15:42:13 UTC) #38
mustaq
On 2017/01/20 15:42:13, mustaq wrote: > On 2017/01/20 15:19:11, Rick Byers wrote: > > On ...
3 years, 11 months ago (2017-01-20 15:44:32 UTC) #39
Navid Zolghadr
ptal. The corresponding wpt test also landed.
3 years, 10 months ago (2017-02-03 16:47:33 UTC) #46
RonnieWayneMcC
3 years, 10 months ago (2017-02-06 21:51:11 UTC) #58
Navid Zolghadr
sadrul@chromium.org: Please review changes in content/browser/renderer_host/* rbyers@chromium.org: Please review changes in third_party/WebKit/*
3 years, 10 months ago (2017-02-06 21:53:42 UTC) #60
Rick Byers
Looks great, thanks! Just one question. https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (left): https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc#oldcode826 content/browser/renderer_host/render_widget_host_view_android.cc:826: nit: no reason ...
3 years, 10 months ago (2017-02-06 22:00:53 UTC) #61
Navid Zolghadr
https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_base.h File content/browser/renderer_host/render_widget_host_view_base.h (right): https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_base.h#newcode489 content/browser/renderer_host/render_widget_host_view_base.h:489: std::map<int, gfx::Point> global_touch_position_; On 2017/02/06 22:00:53, Rick Byers wrote: ...
3 years, 10 months ago (2017-02-06 22:40:41 UTC) #62
sadrul
https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_base.cc File content/browser/renderer_host/render_widget_host_view_base.cc (right): https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_base.cc#newcode513 content/browser/renderer_host/render_widget_host_view_base.cc:513: auto& touchPoint = event->touches[i]; touch_point Perhaps you could make ...
3 years, 10 months ago (2017-02-07 03:48:30 UTC) #63
Navid Zolghadr
https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_base.h File content/browser/renderer_host/render_widget_host_view_base.h (right): https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_base.h#newcode489 content/browser/renderer_host/render_widget_host_view_base.h:489: std::map<int, gfx::Point> global_touch_position_; On 2017/02/07 03:48:30, sadrul wrote: > ...
3 years, 10 months ago (2017-02-07 15:43:05 UTC) #64
Navid Zolghadr
https://codereview.chromium.org/2624783002/diff/180001/third_party/WebKit/public/platform/WebPointerProperties.h File third_party/WebKit/public/platform/WebPointerProperties.h (right): https://codereview.chromium.org/2624783002/diff/180001/third_party/WebKit/public/platform/WebPointerProperties.h#newcode86 third_party/WebKit/public/platform/WebPointerProperties.h:86: int movementX; On 2017/02/06 22:00:53, Rick Byers wrote: > ...
3 years, 10 months ago (2017-02-07 15:58:51 UTC) #65
sadrul
On 2017/02/07 15:43:05, Navid Zolghadr wrote: > https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_base.h > File content/browser/renderer_host/render_widget_host_view_base.h (right): > > https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_base.h#newcode489 ...
3 years, 10 months ago (2017-02-08 06:59:09 UTC) #66
sadrul
Also, please make sure to update the CL description to include a little more detail. ...
3 years, 10 months ago (2017-02-08 07:01:52 UTC) #67
Navid Zolghadr
ptal. https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (left): https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_android.cc#oldcode826 content/browser/renderer_host/render_widget_host_view_android.cc:826: On 2017/02/06 22:00:53, Rick Byers wrote: > nit: ...
3 years, 10 months ago (2017-02-08 17:18:49 UTC) #68
Rick Byers
On 2017/02/06 22:40:41, Navid Zolghadr wrote: > https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_base.h > File content/browser/renderer_host/render_widget_host_view_base.h (right): > > https://codereview.chromium.org/2624783002/diff/180001/content/browser/renderer_host/render_widget_host_view_base.h#newcode489 ...
3 years, 10 months ago (2017-02-08 21:27:47 UTC) #69
Rick Byers
LGTM https://codereview.chromium.org/2624783002/diff/180001/third_party/WebKit/public/platform/WebPointerProperties.h File third_party/WebKit/public/platform/WebPointerProperties.h (right): https://codereview.chromium.org/2624783002/diff/180001/third_party/WebKit/public/platform/WebPointerProperties.h#newcode86 third_party/WebKit/public/platform/WebPointerProperties.h:86: int movementX; On 2017/02/07 15:58:51, Navid Zolghadr wrote: ...
3 years, 10 months ago (2017-02-08 21:45:14 UTC) #70
Navid Zolghadr
On 2017/02/08 21:27:47, Rick Byers wrote: > On 2017/02/06 22:40:41, Navid Zolghadr wrote: > > ...
3 years, 10 months ago (2017-02-08 21:52:23 UTC) #71
sadrul
On 2017/02/08 07:01:52, sadrul wrote: > Also, please make sure to update the CL description ...
3 years, 10 months ago (2017-02-09 01:23:30 UTC) #72
Navid Zolghadr
On 2017/02/09 01:23:30, sadrul wrote: > On 2017/02/08 07:01:52, sadrul wrote: > > Also, please ...
3 years, 10 months ago (2017-02-09 01:32:23 UTC) #75
sadrul
Thank you for updating the CL description! Still some comments on that: please note that ...
3 years, 10 months ago (2017-02-09 03:11:34 UTC) #76
Navid Zolghadr
Great read regarding the commit message. Hopefully I applied all the tips now. https://codereview.chromium.org/2624783002/diff/240001/content/browser/renderer_host/input/input_router_impl.cc File ...
3 years, 10 months ago (2017-02-09 16:35:08 UTC) #87
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/2624783002/320001
3 years, 10 months ago (2017-02-10 05:44:52 UTC) #100
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/361316)
3 years, 10 months ago (2017-02-10 05:51:54 UTC) #102
Navid Zolghadr
Tim, can you take a look at these files: content/common/input/*
3 years, 10 months ago (2017-02-10 06:28:29 UTC) #104
tdresser
https://codereview.chromium.org/2624783002/diff/320001/content/browser/renderer_host/input/touch_input_browsertest.cc File content/browser/renderer_host/input/touch_input_browsertest.cc (right): https://codereview.chromium.org/2624783002/diff/320001/content/browser/renderer_host/input/touch_input_browsertest.cc#newcode216 content/browser/renderer_host/input/touch_input_browsertest.cc:216: touch.StalePoint(id); touch.ResetPoints(), and StalePoint isn't needed. It might be ...
3 years, 10 months ago (2017-02-10 13:09:07 UTC) #105
Navid Zolghadr
ptal. https://codereview.chromium.org/2624783002/diff/320001/content/browser/renderer_host/input/touch_input_browsertest.cc File content/browser/renderer_host/input/touch_input_browsertest.cc (right): https://codereview.chromium.org/2624783002/diff/320001/content/browser/renderer_host/input/touch_input_browsertest.cc#newcode216 content/browser/renderer_host/input/touch_input_browsertest.cc:216: touch.StalePoint(id); On 2017/02/10 13:09:07, tdresser wrote: > touch.ResetPoints(), ...
3 years, 10 months ago (2017-02-10 16:02:09 UTC) #108
tdresser
LGTM, thanks.
3 years, 10 months ago (2017-02-10 16:04:13 UTC) #109
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/2624783002/340001
3 years, 10 months ago (2017-02-10 20:02:43 UTC) #114
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 20:15:29 UTC) #117
Message was sent while issue was closed.
Committed patchset #18 (id:340001) as
https://chromium.googlesource.com/chromium/src/+/2fe7948da152f6d65725173f0ec1...

Powered by Google App Engine
This is Rietveld 408576698