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

Issue 2669663002: Move touch slop suppression to TouchEventManager (Closed)

Created:
3 years, 10 months ago by lanwei
Modified:
3 years, 10 months ago
CC:
chromium-reviews, dtapuska+blinkwatch_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, darin-cc_chromium.org, Navid Zolghadr, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move touch slop suppression from LegacyTouchEventQueue to TouchEventManager We do not want to suppress pointer events, but the current code suppresses touch events from browser side, so the pointer events are also suppressed. We move the slop region suppression code to TouchEventManager, so all the pointer moves will be dispatched. BUG=593061 Review-Url: https://codereview.chromium.org/2669663002 Cr-Commit-Position: refs/heads/master@{#448773} Committed: https://chromium.googlesource.com/chromium/src/+/00f7089132148e96541a6a476a68809790048e81

Patch Set 1 : slop region #

Total comments: 4

Patch Set 2 : slop region #

Patch Set 3 : slop region #

Total comments: 11

Patch Set 4 : slop region #

Total comments: 7

Patch Set 5 : slop regesion #

Total comments: 5

Patch Set 6 : slop regesion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -212 lines) Patch
M components/test_runner/event_sender.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M components/test_runner/event_sender.cc View 1 2 3 4 3 chunks +2 lines, -20 lines 0 comments Download
M content/browser/renderer_host/input/legacy_touch_event_queue.h View 2 chunks +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/input/legacy_touch_event_queue.cc View 6 chunks +0 lines, -69 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue_unittest.cc View 1 2 3 4 3 chunks +32 lines, -114 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/events/pointerevents/multi-pointer-event-in-slop-region.html View 1 2 3 4 5 1 chunk +74 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-event-in-slop-region.html View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/touch/touch-user-gesture.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/TouchEventManager.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/TouchEventManager.cpp View 1 3 chunks +29 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 74 (56 generated)
dtapuska
We should also test touch emulation in the inspector I suspect it is broken.. Specifically ...
3 years, 10 months ago (2017-02-01 15:42:06 UTC) #18
mustaq
https://codereview.chromium.org/2669663002/diff/60001/third_party/WebKit/Source/core/input/TouchEventManager.h File third_party/WebKit/Source/core/input/TouchEventManager.h (right): https://codereview.chromium.org/2669663002/diff/60001/third_party/WebKit/Source/core/input/TouchEventManager.h#newcode98 third_party/WebKit/Source/core/input/TouchEventManager.h:98: bool m_suppressingTouchmoves; Please make it clear that this is ...
3 years, 10 months ago (2017-02-01 20:17:11 UTC) #20
lanwei
On 2017/02/01 15:42:06, dtapuska wrote: > We should also test touch emulation in the inspector ...
3 years, 10 months ago (2017-02-01 20:51:30 UTC) #24
dtapuska
On 2017/02/01 20:51:30, lanwei wrote: > On 2017/02/01 15:42:06, dtapuska wrote: > > We should ...
3 years, 10 months ago (2017-02-02 00:15:42 UTC) #27
dtapuska
tdresser@ care to have a look?
3 years, 10 months ago (2017-02-02 00:16:36 UTC) #29
mustaq
lgtm
3 years, 10 months ago (2017-02-02 01:30:08 UTC) #30
lanwei
https://codereview.chromium.org/2669663002/diff/60001/third_party/WebKit/Source/core/input/TouchEventManager.cpp File third_party/WebKit/Source/core/input/TouchEventManager.cpp (right): https://codereview.chromium.org/2669663002/diff/60001/third_party/WebKit/Source/core/input/TouchEventManager.cpp#newcode118 third_party/WebKit/Source/core/input/TouchEventManager.cpp:118: if (event.type() == WebInputEvent::TouchStart) On 2017/02/01 15:42:06, dtapuska wrote: ...
3 years, 10 months ago (2017-02-02 19:49:37 UTC) #34
tdresser
https://codereview.chromium.org/2669663002/diff/100001/content/browser/renderer_host/input/touch_event_queue_unittest.cc File content/browser/renderer_host/input/touch_event_queue_unittest.cc (right): https://codereview.chromium.org/2669663002/diff/100001/content/browser/renderer_host/input/touch_event_queue_unittest.cc#newcode1392 content/browser/renderer_host/input/touch_event_queue_unittest.cc:1392: // suppression region for an unconsumed TouchStart. Remove references ...
3 years, 10 months ago (2017-02-02 21:30:54 UTC) #37
lanwei
https://codereview.chromium.org/2669663002/diff/100001/content/browser/renderer_host/input/touch_event_queue_unittest.cc File content/browser/renderer_host/input/touch_event_queue_unittest.cc (right): https://codereview.chromium.org/2669663002/diff/100001/content/browser/renderer_host/input/touch_event_queue_unittest.cc#newcode1392 content/browser/renderer_host/input/touch_event_queue_unittest.cc:1392: // suppression region for an unconsumed TouchStart. On 2017/02/02 ...
3 years, 10 months ago (2017-02-03 21:39:33 UTC) #43
lanwei
3 years, 10 months ago (2017-02-05 19:07:35 UTC) #51
tdresser
https://codereview.chromium.org/2669663002/diff/100001/third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp (right): https://codereview.chromium.org/2669663002/diff/100001/third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp#newcode115 third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp:115: movedBeyondSlopRegion = true; On 2017/02/03 21:39:33, lanwei wrote: > ...
3 years, 10 months ago (2017-02-06 14:26:00 UTC) #52
lanwei
https://codereview.chromium.org/2669663002/diff/160001/components/test_runner/event_sender.cc File components/test_runner/event_sender.cc (right): https://codereview.chromium.org/2669663002/diff/160001/components/test_runner/event_sender.cc#newcode2245 components/test_runner/event_sender.cc:2245: if (args->GetNext(&arg) && arg == "movedInsideSlopRegion") On 2017/02/06 14:25:59, ...
3 years, 10 months ago (2017-02-06 21:36:23 UTC) #58
tdresser
Sorry for the confusion on how to synthesize input here. https://codereview.chromium.org/2669663002/diff/160001/third_party/WebKit/LayoutTests/fast/events/pointerevents/multi-pointer-event-in-slop-region.html File third_party/WebKit/LayoutTests/fast/events/pointerevents/multi-pointer-event-in-slop-region.html (right): https://codereview.chromium.org/2669663002/diff/160001/third_party/WebKit/LayoutTests/fast/events/pointerevents/multi-pointer-event-in-slop-region.html#newcode48 ...
3 years, 10 months ago (2017-02-06 21:49:59 UTC) #59
tdresser
LGTM with above nits.
3 years, 10 months ago (2017-02-06 21:50:11 UTC) #60
Rick Byers
LGTM with nit https://codereview.chromium.org/2669663002/diff/200001/third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-event-in-slop-region.html File third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-event-in-slop-region.html (right): https://codereview.chromium.org/2669663002/diff/200001/third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-event-in-slop-region.html#newcode48 third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-event-in-slop-region.html:48: var pointerActions = [{'source': 'touch'}]; On ...
3 years, 10 months ago (2017-02-07 18:51:43 UTC) #63
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/2669663002/220001
3 years, 10 months ago (2017-02-07 21:43:36 UTC) #70
commit-bot: I haz the power
Committed patchset #6 (id:220001) as https://chromium.googlesource.com/chromium/src/+/00f7089132148e96541a6a476a68809790048e81
3 years, 10 months ago (2017-02-07 23:13:02 UTC) #73
lanwei
3 years, 10 months ago (2017-02-21 18:10:28 UTC) #74
Message was sent while issue was closed.
https://codereview.chromium.org/2669663002/diff/200001/third_party/WebKit/Lay...
File
third_party/WebKit/LayoutTests/fast/events/pointerevents/multi-pointer-event-in-slop-region.html
(right):

https://codereview.chromium.org/2669663002/diff/200001/third_party/WebKit/Lay...
third_party/WebKit/LayoutTests/fast/events/pointerevents/multi-pointer-event-in-slop-region.html:48:
var pointerActions = [{'source': 'touch'}, {'source': 'touch'}];
On 2017/02/06 21:49:59, tdresser wrote:
> Let's just use a single literal here.

Done.

https://codereview.chromium.org/2669663002/diff/200001/third_party/WebKit/Lay...
File
third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-event-in-slop-region.html
(right):

https://codereview.chromium.org/2669663002/diff/200001/third_party/WebKit/Lay...
third_party/WebKit/LayoutTests/fast/events/pointerevents/pointer-event-in-slop-region.html:48:
var pointerActions = [{'source': 'touch'}];
On 2017/02/07 18:51:43, Rick Byers wrote:
> On 2017/02/06 21:49:59, tdresser wrote:
> > This might as well be a single object literal, instead of a bunch of calls
to
> > push, right?
> 
> +1
> 
> Also you can make it slightly easier to read by omitting quotes around the
> property names.  Eg:
> var pointerActions = [
>   {source: 'touch'},
>   {actions: [
>     {name: 'pointerDown', x: x, y: y},
>     ...
>   ]}];

Done.

Powered by Google App Engine
This is Rietveld 408576698