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

Issue 2843543002: Missing source pointer down events are handled. (Closed)

Created:
3 years, 8 months ago by sahel
Modified:
3 years, 7 months ago
Reviewers:
tdresser
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Missing source pointer down events are handled. The correct MotionEvent sequence for scrolling is ACTION_DOWN, optional number of ACTION_POINTER_DOWN, and ACTION_MOVE. When there are one or two pointers down while moving, and no scrolling has happened since beginning of the current event sequence, we check to see if any of the pointers has exeeded their slop region or not. If yes then scrolling starts and no tap event will happen for the rest of the current event sequence, otherwise no scroll will happen and if pointers get released before tap/long tap or two finger tap timers are expired then those events will happen. In some cases the ACTION_POINTER_DOWN event is missing from the event sequence and it results in crashes in GetSourcePointerDownEvent since the source pointer down event is not found. This patch skips slop region check for pointers which don't have soure pointer down event. BUG=704426 TEST=GestureProviderTest.SlopRegionCheckOnMissingSecondaryPointerDownEvent Review-Url: https://codereview.chromium.org/2843543002 Cr-Commit-Position: refs/heads/master@{#471872} Committed: https://chromium.googlesource.com/chromium/src/+/6db0fde5caaa551bbf6e61b69d798a08cffcf11d

Patch Set 1 #

Total comments: 6

Patch Set 2 : Links to the bug added to the comments. #

Total comments: 2

Patch Set 3 : use of reference for the mandatory parameter. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -13 lines) Patch
M ui/events/gesture_detection/gesture_detector.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_detector.cc View 1 2 3 chunks +14 lines, -10 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider_unittest.cc View 1 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (24 generated)
sahel
I couldn't reproduce the bug locally, since it doesn't happen in normal even sequences. I ...
3 years, 8 months ago (2017-04-24 20:14:48 UTC) #7
tdresser
This looks like it might be treating a symptom instead of the cause. Do we ...
3 years, 7 months ago (2017-04-27 20:21:04 UTC) #8
sahel
On 2017/04/27 20:21:04, tdresser wrote: > This looks like it might be treating a symptom ...
3 years, 7 months ago (2017-04-27 21:04:20 UTC) #9
tdresser
On 2017/04/27 21:04:20, sahel wrote: > On 2017/04/27 20:21:04, tdresser wrote: > > This looks ...
3 years, 7 months ago (2017-04-28 13:27:18 UTC) #10
sahel
On 2017/04/28 13:27:18, tdresser wrote: > On 2017/04/27 21:04:20, sahel wrote: > > On 2017/04/27 ...
3 years, 7 months ago (2017-05-01 20:39:12 UTC) #11
tdresser
On 2017/05/01 20:39:12, sahel wrote: > On 2017/04/28 13:27:18, tdresser wrote: > > On 2017/04/27 ...
3 years, 7 months ago (2017-05-02 12:23:36 UTC) #12
sahel
On 2017/05/02 12:23:36, tdresser wrote: > On 2017/05/01 20:39:12, sahel wrote: > > On 2017/04/28 ...
3 years, 7 months ago (2017-05-02 14:29:44 UTC) #13
tdresser
On 2017/05/02 14:29:44, sahel wrote: > On 2017/05/02 12:23:36, tdresser wrote: > > On 2017/05/01 ...
3 years, 7 months ago (2017-05-02 14:59:03 UTC) #14
sahel
On 2017/05/02 14:59:03, tdresser wrote: > On 2017/05/02 14:29:44, sahel wrote: > > On 2017/05/02 ...
3 years, 7 months ago (2017-05-11 16:10:59 UTC) #15
tdresser
Nope, let's just go ahead with this approach. I was hoping we'd be able to ...
3 years, 7 months ago (2017-05-11 16:57:27 UTC) #16
sahel
https://codereview.chromium.org/2843543002/diff/1/ui/events/gesture_detection/gesture_detector.cc File ui/events/gesture_detection/gesture_detector.cc (right): https://codereview.chromium.org/2843543002/diff/1/ui/events/gesture_detection/gesture_detector.cc#newcode587 ui/events/gesture_detection/gesture_detector.cc:587: // not found. On 2017/05/11 16:57:27, tdresser wrote: > ...
3 years, 7 months ago (2017-05-11 17:26:20 UTC) #17
tdresser
LGTM with nit. https://codereview.chromium.org/2843543002/diff/20001/ui/events/gesture_detection/gesture_detector.h File ui/events/gesture_detection/gesture_detector.h (right): https://codereview.chromium.org/2843543002/diff/20001/ui/events/gesture_detection/gesture_detector.h#newcode106 ui/events/gesture_detection/gesture_detector.h:106: const MotionEvent* current_down_event, Since this is ...
3 years, 7 months ago (2017-05-12 18:21:13 UTC) #22
sahel
https://codereview.chromium.org/2843543002/diff/20001/ui/events/gesture_detection/gesture_detector.h File ui/events/gesture_detection/gesture_detector.h (right): https://codereview.chromium.org/2843543002/diff/20001/ui/events/gesture_detection/gesture_detector.h#newcode106 ui/events/gesture_detection/gesture_detector.h:106: const MotionEvent* current_down_event, On 2017/05/12 18:21:13, tdresser wrote: > ...
3 years, 7 months ago (2017-05-12 18:27:55 UTC) #23
tdresser
On 2017/05/12 18:27:55, sahel wrote: > https://codereview.chromium.org/2843543002/diff/20001/ui/events/gesture_detection/gesture_detector.h > File ui/events/gesture_detection/gesture_detector.h (right): > > https://codereview.chromium.org/2843543002/diff/20001/ui/events/gesture_detection/gesture_detector.h#newcode106 > ...
3 years, 7 months ago (2017-05-12 18:35:06 UTC) #24
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/2843543002/40001
3 years, 7 months ago (2017-05-15 14:25:26 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/411158)
3 years, 7 months ago (2017-05-15 14:50:40 UTC) #33
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/2843543002/40001
3 years, 7 months ago (2017-05-15 19:38:50 UTC) #39
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 19:46:04 UTC) #42
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/6db0fde5caaa551bbf6e61b69d79...

Powered by Google App Engine
This is Rietveld 408576698