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

Issue 1048333005: ozone: Map TouchEvent::touch_id_ into expected range (Closed)

Created:
5 years, 8 months ago by robert.bradford
Modified:
5 years, 8 months ago
Reviewers:
sadrul, *spang
CC:
chromium-reviews, kalyank, jdduke+watch_chromium.org, sadrul, ozone-reviews_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

ozone: Map TouchEvent::touch_id_ into expected range Touch events from evdev have a slot identifier to represent which fingers are touched. Prior to this change this slot identifier was used as the TouchEvent::touch_id_. However this breaks with multiple touchscreens as the range for the slots will be the same. This CL resolves that by using a SequentialIDGenerator to map a unique device and slot id to an unused touch id in the sequence. The touch id is released when the touch is released or cancelled. BUG=472308 TEST=Manual testing on link_freon with uncommitted VLOG messages. Committed: https://crrev.com/6b00b5adca67ecbf6accd74d7d51d9b596ef066b Cr-Commit-Position: refs/heads/master@{#325255}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Map touch ids into range #

Patch Set 3 : Relocate DeviceDataManageOzone creation and add gn entries #

Patch Set 4 : Push all touch id management into EventFactoryEvdev #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -18 lines) Patch
M ui/events/ozone/evdev/device_event_dispatcher_evdev.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/device_event_dispatcher_evdev.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.cc View 1 2 3 3 chunks +10 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc View 1 2 3 11 chunks +13 lines, -13 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
robert.bradford
spang@: Please review the changes in ui/events/ozone sadrul@: Please review the changes in ui/aura (and ...
5 years, 8 months ago (2015-04-13 17:12:28 UTC) #3
spang
On 2015/04/13 17:12:28, robert.bradford wrote: > spang@: Please review the changes in ui/events/ozone > > ...
5 years, 8 months ago (2015-04-13 17:19:21 UTC) #4
spang
https://codereview.chromium.org/1048333005/diff/1/ui/aura/window_event_dispatcher.h File ui/aura/window_event_dispatcher.h (right): https://codereview.chromium.org/1048333005/diff/1/ui/aura/window_event_dispatcher.h#newcode243 ui/aura/window_event_dispatcher.h:243: std::set<int> touch_ids_down_; std::bitset?
5 years, 8 months ago (2015-04-13 17:19:54 UTC) #5
robert.bradford
> Does the UI code work if the touches aren't densely packed around 0? > ...
5 years, 8 months ago (2015-04-14 18:26:29 UTC) #6
spang
On 2015/04/14 18:26:29, robert.bradford wrote: > > Does the UI code work if the touches ...
5 years, 8 months ago (2015-04-14 18:46:42 UTC) #7
spang
On 2015/04/14 18:46:42, spang wrote: > On 2015/04/14 18:26:29, robert.bradford wrote: > > > Does ...
5 years, 8 months ago (2015-04-14 18:47:24 UTC) #8
robert.bradford
> > Shouldn't even need to change TouchEventConverterEvdev. We can send {device > id, > ...
5 years, 8 months ago (2015-04-15 15:20:54 UTC) #9
spang
lgtm
5 years, 8 months ago (2015-04-15 15:49:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1048333005/60001
5 years, 8 months ago (2015-04-15 15:50:43 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-15 16:20:06 UTC) #14
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 16:20:51 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6b00b5adca67ecbf6accd74d7d51d9b596ef066b
Cr-Commit-Position: refs/heads/master@{#325255}

Powered by Google App Engine
This is Rietveld 408576698