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

Issue 2789203006: Routes touch ACK events to the correct GestureProvider (Closed)

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

Description

Routes touch ACK events to the correct GestureProvider Currently a call to |GestureRecognizerImpl::TransferEventsTo()| can lead to an incorrect state for touch events. Specifically, the event ACKS are getting routed to a different reference of GestureProvider from the one where the original events were routed to. This patch stores a mapping of every event that was dispatched along with its corresponding GestureProvider. This allows the event ACKS to be routed correctly despite a call made to |TransferEventsTo()|. BUG=698843 COMPONENT=Gesture Recognizer, Touch Gestures, Drag and Drop Review-Url: https://codereview.chromium.org/2789203006 Cr-Commit-Position: refs/heads/master@{#462925} Committed: https://chromium.googlesource.com/chromium/src/+/dc60e34a7fa422c46c7a6abe6b17e1d2b858b5b6

Patch Set 1 #

Patch Set 2 : Fixed Tests #

Total comments: 2

Patch Set 3 : nit #

Patch Set 4 : Added Bug specific unit test #

Total comments: 11

Patch Set 5 : Resolving comments #

Patch Set 6 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -2 lines) Patch
M ui/aura/gestures/gesture_recognizer_unittest.cc View 1 2 3 4 1 chunk +60 lines, -0 lines 0 comments Download
M ui/events/gestures/gesture_recognizer_impl.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M ui/events/gestures/gesture_recognizer_impl.cc View 1 2 3 4 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (35 generated)
malaykeshav
PTAL
3 years, 8 months ago (2017-04-05 05:16:26 UTC) #11
tdresser
Tests? https://codereview.chromium.org/2789203006/diff/40001/ui/events/gestures/gesture_recognizer_impl.cc File ui/events/gestures/gesture_recognizer_impl.cc (right): https://codereview.chromium.org/2789203006/diff/40001/ui/events/gestures/gesture_recognizer_impl.cc#newcode285 ui/events/gestures/gesture_recognizer_impl.cc:285: // consumer associted with it. associted -> associated
3 years, 8 months ago (2017-04-05 14:23:39 UTC) #12
malaykeshav
PTAL Added tests for the bug https://codereview.chromium.org/2789203006/diff/40001/ui/events/gestures/gesture_recognizer_impl.cc File ui/events/gestures/gesture_recognizer_impl.cc (right): https://codereview.chromium.org/2789203006/diff/40001/ui/events/gestures/gesture_recognizer_impl.cc#newcode285 ui/events/gestures/gesture_recognizer_impl.cc:285: // consumer associted ...
3 years, 8 months ago (2017-04-06 20:50:32 UTC) #26
tdresser
Thanks, looks pretty good - I'd like to give it one more quick skim after ...
3 years, 8 months ago (2017-04-06 20:59:52 UTC) #27
malaykeshav
PTAL https://codereview.chromium.org/2789203006/diff/100001/ui/aura/gestures/gesture_recognizer_unittest.cc File ui/aura/gestures/gesture_recognizer_unittest.cc (right): https://codereview.chromium.org/2789203006/diff/100001/ui/aura/gestures/gesture_recognizer_unittest.cc#newcode4727 ui/aura/gestures/gesture_recognizer_unittest.cc:4727: DispatchEventUsingWindowDispatcher(&move2); On 2017/04/06 at 20:59:52, tdresser wrote: > ...
3 years, 8 months ago (2017-04-07 01:08:00 UTC) #32
tdresser
LGTM https://codereview.chromium.org/2789203006/diff/100001/ui/events/gestures/gesture_recognizer_impl.h File ui/events/gestures/gesture_recognizer_impl.h (right): https://codereview.chromium.org/2789203006/diff/100001/ui/events/gestures/gesture_recognizer_impl.h#newcode92 ui/events/gestures/gesture_recognizer_impl.h:92: // provider. This avoids any invalid reference while ...
3 years, 8 months ago (2017-04-07 12:33:00 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/2789203006/140001
3 years, 8 months ago (2017-04-07 17:58:11 UTC) #40
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 18:15:56 UTC) #43
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/dc60e34a7fa422c46c7a6abe6b17...

Powered by Google App Engine
This is Rietveld 408576698