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

Issue 212663010: Store the id of a contributing motion event in GestureEventData (Closed)

Created:
6 years, 9 months ago by tdresser
Modified:
6 years, 8 months ago
Reviewers:
jdduke (slow)
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, dcheng
Visibility:
Public.

Description

Store the id of a contributing motion event in GestureEventData The unified GR needs to be able to construct ui::GestureEvents from GestureEventData objects. Currently no information on contributing touch ids is available in GestureEventData. This information is used for figuring out which window to target a gesture to - the gesture is targeted to the window which the contributing touch is locked to. BUG=332418 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261808

Patch Set 1 #

Patch Set 2 : Fix Windows compile. #

Patch Set 3 : Update for Clank using GestureEventDetails, fix tests. #

Patch Set 4 : Fix tests and platform specific compilation issues. #

Patch Set 5 : Minor windows fix. #

Patch Set 6 : Fix more tests. #

Patch Set 7 : Fix more tests. #

Patch Set 8 : More test fixes... #

Patch Set 9 : More test fixes... #

Patch Set 10 : A more pragmatic approach. #

Patch Set 11 : Fix broken DCHECK, and handle malformed event streams more robustly. #

Patch Set 12 : Store motion_event_id, not touch_id. #

Total comments: 10

Patch Set 13 : Address jdduke's comments. #

Total comments: 2

Patch Set 14 : Address jdduke's comments. #

Patch Set 15 : Rebase. #

Patch Set 16 : Update test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -64 lines) Patch
M content/browser/renderer_host/input/motion_event_android.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_android.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_web.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_web.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_event_data.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_event_data.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +11 lines, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -6 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 12 chunks +56 lines, -27 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 chunks +61 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/mock_motion_event.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/mock_motion_event.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +15 lines, -5 lines 0 comments Download
M ui/events/gesture_detection/motion_event.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/gesture_detection/scale_gesture_detector.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +12 lines, -6 lines 0 comments Download
M ui/events/gesture_detection/scale_gesture_detector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +7 lines, -7 lines 0 comments Download
M ui/events/gesture_detection/touch_disposition_gesture_filter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/gesture_detection/touch_disposition_gesture_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +16 lines, -6 lines 0 comments Download
M ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +15 lines, -6 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
tdresser
6 years, 8 months ago (2014-03-27 15:27:15 UTC) #1
tdresser
jdduke@, can you take a look? I was initially playing with an approach which I ...
6 years, 8 months ago (2014-04-01 14:58:07 UTC) #2
tdresser
As discussed with jdduke offline, I've switched to storing the motion event id, instead of ...
6 years, 8 months ago (2014-04-02 17:46:14 UTC) #3
jdduke (slow)
https://codereview.chromium.org/212663010/diff/240001/ui/events/gesture_detection/gesture_provider.cc File ui/events/gesture_detection/gesture_provider.cc (right): https://codereview.chromium.org/212663010/diff/240001/ui/events/gesture_detection/gesture_provider.cc#newcode296 ui/events/gesture_detection/gesture_provider.cc:296: e1.GetId(), Hmm... e1 is the ACTION_DOWN, don't we want ...
6 years, 8 months ago (2014-04-02 18:33:12 UTC) #4
jdduke (slow)
+cc: mkosiba@, this will be useful for the listener interface for WebView. I think all ...
6 years, 8 months ago (2014-04-02 18:35:14 UTC) #5
tdresser
https://codereview.chromium.org/212663010/diff/240001/ui/events/gesture_detection/gesture_provider.cc File ui/events/gesture_detection/gesture_provider.cc (right): https://codereview.chromium.org/212663010/diff/240001/ui/events/gesture_detection/gesture_provider.cc#newcode296 ui/events/gesture_detection/gesture_provider.cc:296: e1.GetId(), On 2014/04/02 18:33:12, jdduke wrote: > Hmm... e1 ...
6 years, 8 months ago (2014-04-03 14:01:23 UTC) #6
mkosiba (inactive)
On 2014/04/02 18:35:14, jdduke wrote: > +cc: mkosiba@, this will be useful for the listener ...
6 years, 8 months ago (2014-04-03 14:31:49 UTC) #7
jdduke (slow)
lgtm with one cleanup suggestion. https://codereview.chromium.org/212663010/diff/260001/ui/events/gesture_detection/gesture_provider.h File ui/events/gesture_detection/gesture_provider.h (right): https://codereview.chromium.org/212663010/diff/260001/ui/events/gesture_detection/gesture_provider.h#newcode87 ui/events/gesture_detection/gesture_provider.h:87: int motion_event_id, Hmm, can ...
6 years, 8 months ago (2014-04-03 15:47:53 UTC) #8
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 8 months ago (2014-04-03 18:08:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/212663010/280001
6 years, 8 months ago (2014-04-03 18:08:31 UTC) #10
tdresser
https://codereview.chromium.org/212663010/diff/260001/ui/events/gesture_detection/gesture_provider.h File ui/events/gesture_detection/gesture_provider.h (right): https://codereview.chromium.org/212663010/diff/260001/ui/events/gesture_detection/gesture_provider.h#newcode87 ui/events/gesture_detection/gesture_provider.h:87: int motion_event_id, On 2014/04/03 15:47:54, jdduke wrote: > Hmm, ...
6 years, 8 months ago (2014-04-03 18:09:46 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 23:35:48 UTC) #12
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 8 months ago (2014-04-03 23:35:49 UTC) #13
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 8 months ago (2014-04-04 12:18:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/212663010/280001
6 years, 8 months ago (2014-04-04 12:18:26 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 12:18:33 UTC) #16
commit-bot: I haz the power
Failed to apply patch for ui/events/gesture_detection/gesture_provider.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-04 12:18:34 UTC) #17
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 8 months ago (2014-04-04 13:51:53 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/212663010/320001
6 years, 8 months ago (2014-04-04 13:52:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/212663010/320001
6 years, 8 months ago (2014-04-04 15:29:28 UTC) #20
commit-bot: I haz the power
6 years, 8 months ago (2014-04-04 18:51:55 UTC) #21
Message was sent while issue was closed.
Change committed as 261808

Powered by Google App Engine
This is Rietveld 408576698