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

Issue 873283003: Invalid press events don't create multiple pointers with the same id. (Closed)

Created:
5 years, 10 months ago by tdresser
Modified:
5 years, 10 months ago
Reviewers:
jdduke (slow)
CC:
chromium-reviews, jdduke+watch_chromium.org, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Invalid press events don't create multiple pointers with the same id. Previously if we got an invalid event stream such as Press id 0 Press id 0 MotionEventAura would happily add the second pointer. Now we replace the first pointer with the second pointer. This work around is required due to crbug.com/373125. BUG=450880 Committed: https://crrev.com/b88d572b627a99714051bf057afdb2ead4f58489 Cr-Commit-Position: refs/heads/master@{#313116}

Patch Set 1 #

Patch Set 2 : Add test. #

Total comments: 2

Patch Set 3 : Use a fake touch cancel. #

Total comments: 1

Patch Set 4 : Update test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -9 lines) Patch
M ui/aura/gestures/gesture_recognizer_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/events/gestures/motion_event_aura.cc View 1 2 1 chunk +10 lines, -5 lines 0 comments Download
M ui/events/gestures/motion_event_aura_unittest.cc View 1 1 chunk +13 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
tdresser
PTAL. This will need to be merged into 41.
5 years, 10 months ago (2015-01-26 17:02:14 UTC) #2
jdduke (slow)
lgtm with one thought. https://codereview.chromium.org/873283003/diff/20001/ui/events/gestures/motion_event_aura.cc File ui/events/gestures/motion_event_aura.cc (right): https://codereview.chromium.org/873283003/diff/20001/ui/events/gestures/motion_event_aura.cc#newcode92 ui/events/gestures/motion_event_aura.cc:92: UpdateTouch(touch); I guess the alternative ...
5 years, 10 months ago (2015-01-26 17:16:19 UTC) #3
tdresser
Yeah, that's a bit cleaner. Are you happy with this? https://codereview.chromium.org/873283003/diff/20001/ui/events/gestures/motion_event_aura.cc File ui/events/gestures/motion_event_aura.cc (right): https://codereview.chromium.org/873283003/diff/20001/ui/events/gestures/motion_event_aura.cc#newcode92 ...
5 years, 10 months ago (2015-01-26 17:48:03 UTC) #4
jdduke (slow)
Yeah, maybe not all that much cleaner =/, but I guess it follows the expected ...
5 years, 10 months ago (2015-01-26 17:51:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/873283003/40001
5 years, 10 months ago (2015-01-26 17:54:04 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/18294) Try jobs failed on following ...
5 years, 10 months ago (2015-01-26 19:00:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/873283003/60001
5 years, 10 months ago (2015-01-26 19:09:28 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-01-26 20:25:30 UTC) #12
commit-bot: I haz the power
5 years, 10 months ago (2015-01-26 20:26:16 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b88d572b627a99714051bf057afdb2ead4f58489
Cr-Commit-Position: refs/heads/master@{#313116}

Powered by Google App Engine
This is Rietveld 408576698