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

Issue 2248933002: Support pen in TouchEventConverterEvdev (Closed)

Created:
4 years, 4 months ago by denniskempin
Modified:
4 years, 4 months ago
Reviewers:
sadrul, spang
CC:
kalyank, 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

Support pen in TouchEventConverterEvdev This change extends the TouchEventConverterEvdev to generate MouseEvents when the device reports the BTN_TOOL_PEN key. BUG=636458 Committed: https://crrev.com/6bc51438ed0dac4173c2b797e060bd36c605b960 Cr-Commit-Position: refs/heads/master@{#413923}

Patch Set 1 #

Patch Set 2 : use cursor delegate and transform events in factory #

Patch Set 3 : nits #

Total comments: 4

Patch Set 4 : added unit test #

Patch Set 5 : store button state and report after SYN #

Patch Set 6 : release buttons on disconnect #

Patch Set 7 : nit #

Patch Set 8 : nit #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -119 lines) Patch
M ui/events/event_constants.h View 1 2 3 4 5 1 chunk +6 lines, -4 lines 0 comments Download
M ui/events/ozone/evdev/device_event_dispatcher_evdev.h View 1 2 3 8 chunks +11 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/device_event_dispatcher_evdev.cc View 1 3 chunks +4 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev_impl.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.cc View 1 2 7 chunks +59 lines, -27 lines 0 comments Download
M ui/events/ozone/evdev/input_injector_evdev.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/tablet_event_converter_evdev.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/touch_evdev_types.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev.h View 1 2 3 4 5 2 chunks +15 lines, -4 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev.cc View 1 2 3 4 5 6 7 9 chunks +97 lines, -20 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc View 1 2 3 4 26 chunks +152 lines, -55 lines 0 comments Download
M ui/wm/core/compound_event_filter.cc View 1 1 chunk +2 lines, -1 line 1 comment Download

Dependent Patchsets:

Messages

Total messages: 22 (8 generated)
spang
https://codereview.chromium.org/2248933002/diff/40001/ui/events/ozone/evdev/touch_event_converter_evdev.cc File ui/events/ozone/evdev/touch_event_converter_evdev.cc (right): https://codereview.chromium.org/2248933002/diff/40001/ui/events/ozone/evdev/touch_event_converter_evdev.cc#newcode340 ui/events/ozone/evdev/touch_event_converter_evdev.cc:340: if (events_[current_slot_].was_touching) Does this actually happen? https://codereview.chromium.org/2248933002/diff/40001/ui/events/ozone/evdev/touch_event_converter_evdev.cc#newcode364 ui/events/ozone/evdev/touch_event_converter_evdev.cc:364: input_device_.id, ...
4 years, 4 months ago (2016-08-16 21:36:21 UTC) #3
denniskempin
PTAL, this is ready for review. https://codereview.chromium.org/2248933002/diff/40001/ui/events/ozone/evdev/touch_event_converter_evdev.cc File ui/events/ozone/evdev/touch_event_converter_evdev.cc (right): https://codereview.chromium.org/2248933002/diff/40001/ui/events/ozone/evdev/touch_event_converter_evdev.cc#newcode340 ui/events/ozone/evdev/touch_event_converter_evdev.cc:340: if (events_[current_slot_].was_touching) On ...
4 years, 4 months ago (2016-08-17 21:47:17 UTC) #5
spang
Can you check a few tricky cases- (1) Unplugging the device need to release mouse ...
4 years, 4 months ago (2016-08-18 19:12:58 UTC) #6
denniskempin
I do really like your approach to synchronization, it's far easier to work with than ...
4 years, 4 months ago (2016-08-19 00:34:11 UTC) #7
spang
lgtm
4 years, 4 months ago (2016-08-22 20:29:09 UTC) #8
denniskempin
On 2016/08/22 20:29:09, spang wrote: > lgtm Thanks for the review, Michael! I really appreciate ...
4 years, 4 months ago (2016-08-22 20:33:29 UTC) #10
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/2248933002/140001
4 years, 4 months ago (2016-08-22 20:34:32 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/243251)
4 years, 4 months ago (2016-08-22 20:47:19 UTC) #13
sadrul
https://codereview.chromium.org/2248933002/diff/140001/ui/wm/core/compound_event_filter.cc File ui/wm/core/compound_event_filter.cc (right): https://codereview.chromium.org/2248933002/diff/140001/ui/wm/core/compound_event_filter.cc#newcode222 ui/wm/core/compound_event_filter.cc:222: !(event->flags() & ui::EF_DIRECT_INPUT)); Should this look at the pointer-type ...
4 years, 4 months ago (2016-08-23 06:28:47 UTC) #14
denniskempin
On 2016/08/23 06:28:47, sadrul wrote: > https://codereview.chromium.org/2248933002/diff/140001/ui/wm/core/compound_event_filter.cc > File ui/wm/core/compound_event_filter.cc (right): > > https://codereview.chromium.org/2248933002/diff/140001/ui/wm/core/compound_event_filter.cc#newcode222 > ...
4 years, 4 months ago (2016-08-23 15:23:47 UTC) #15
sadrul
lgtm
4 years, 4 months ago (2016-08-23 23:25:25 UTC) #16
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/2248933002/140001
4 years, 4 months ago (2016-08-23 23:57:25 UTC) #18
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-24 01:16:30 UTC) #20
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 01:18:06 UTC) #22
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/6bc51438ed0dac4173c2b797e060bd36c605b960
Cr-Commit-Position: refs/heads/master@{#413923}

Powered by Google App Engine
This is Rietveld 408576698