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

Issue 677113002: ozone: evdev: Handle mouse events (Closed)

Created:
6 years, 2 months ago by vignatti (out of this project)
Modified:
6 years, 1 month ago
Reviewers:
kpschoedel, spang
CC:
chromium-reviews, kalyank, tdresser+watch_chromium.org, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

ozone: evdev: Handle mouse events This CL renames KeyEventConverterEvdev to EventConverterEvdevImpl, adding mouse support there. It adds converter for mouse events that handles move and button events. This is useful for simple mouse testing and also systems that don't want the complexity of gestures library. I don't have a multipurpose input device just like described in crbug.com/412996, but I believe this benefits the needed changes towards that goal as well. BUG=412996 TEST=Run chrome target on DRI platform on non-CrOS. Committed: https://crrev.com/e6e890a7ead1cca18d7f9fa9c75d9765c04e6c1a Cr-Commit-Position: refs/heads/master@{#301465}

Patch Set 1 #

Patch Set 2 : fix copyright #

Patch Set 3 : adopt spang ideas #

Total comments: 6

Patch Set 4 : kbd modifier support and other fixes #

Total comments: 10

Patch Set 5 : more review and lint fixes #

Total comments: 4

Patch Set 6 : fix nits and a small bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -523 lines) Patch
M ui/events/BUILD.gn View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/events.gyp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/ozone/BUILD.gn View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A ui/events/ozone/evdev/event_converter_evdev_impl.h View 1 2 3 4 5 1 chunk +76 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/event_converter_evdev_impl.cc View 1 2 3 4 5 1 chunk +136 lines, -0 lines 0 comments Download
A + ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc View 1 2 3 4 9 chunks +32 lines, -33 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.cc View 1 2 3 4 2 chunks +10 lines, -4 lines 0 comments Download
D ui/events/ozone/evdev/key_event_converter_evdev.h View 1 2 1 chunk +0 lines, -47 lines 0 comments Download
D ui/events/ozone/evdev/key_event_converter_evdev.cc View 1 2 1 chunk +0 lines, -62 lines 0 comments Download
D ui/events/ozone/evdev/key_event_converter_evdev_unittest.cc View 1 2 1 chunk +0 lines, -371 lines 0 comments Download
M ui/events/ozone/events_ozone.gyp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
vignatti (out of this project)
PTAL.
6 years, 2 months ago (2014-10-24 18:30:46 UTC) #2
spang
Please rename KeyEventConverterEvdev to EventConverterEvdevImpl and add mouse support there. see crbug.com/412996
6 years, 2 months ago (2014-10-24 19:18:21 UTC) #3
vignatti (out of this project)
On 2014/10/24 19:18:21, spang wrote: > Please rename KeyEventConverterEvdev to EventConverterEvdevImpl and add mouse > ...
6 years, 2 months ago (2014-10-24 20:17:34 UTC) #4
spang
https://codereview.chromium.org/677113002/diff/40001/ui/events/ozone/evdev/event_converter_evdev_impl.cc File ui/events/ozone/evdev/event_converter_evdev_impl.cc (right): https://codereview.chromium.org/677113002/diff/40001/ui/events/ozone/evdev/event_converter_evdev_impl.cc#newcode77 ui/events/ozone/evdev/event_converter_evdev_impl.cc:77: return; please handle non-axis-aligned movement properly. Moving +4,+4 isn't ...
6 years, 2 months ago (2014-10-24 20:44:04 UTC) #5
vignatti (out of this project)
Thanks for the review spang. PTAnotherL. https://codereview.chromium.org/677113002/diff/40001/ui/events/ozone/evdev/event_converter_evdev_impl.cc File ui/events/ozone/evdev/event_converter_evdev_impl.cc (right): https://codereview.chromium.org/677113002/diff/40001/ui/events/ozone/evdev/event_converter_evdev_impl.cc#newcode77 ui/events/ozone/evdev/event_converter_evdev_impl.cc:77: return; On 2014/10/24 ...
6 years, 1 month ago (2014-10-27 17:57:08 UTC) #6
spang
https://codereview.chromium.org/677113002/diff/60001/ui/events/ozone/evdev/event_converter_evdev_impl.cc File ui/events/ozone/evdev/event_converter_evdev_impl.cc (right): https://codereview.chromium.org/677113002/diff/60001/ui/events/ozone/evdev/event_converter_evdev_impl.cc#newcode63 ui/events/ozone/evdev/event_converter_evdev_impl.cc:63: if (input.type == EV_KEY) Use switch/case https://codereview.chromium.org/677113002/diff/60001/ui/events/ozone/evdev/event_converter_evdev_impl.cc#newcode76 ui/events/ozone/evdev/event_converter_evdev_impl.cc:76: if ...
6 years, 1 month ago (2014-10-27 19:02:21 UTC) #7
vignatti (out of this project)
PTAL spang@ https://codereview.chromium.org/677113002/diff/60001/ui/events/ozone/evdev/event_converter_evdev_impl.cc File ui/events/ozone/evdev/event_converter_evdev_impl.cc (right): https://codereview.chromium.org/677113002/diff/60001/ui/events/ozone/evdev/event_converter_evdev_impl.cc#newcode63 ui/events/ozone/evdev/event_converter_evdev_impl.cc:63: if (input.type == EV_KEY) On 2014/10/27 19:02:21, ...
6 years, 1 month ago (2014-10-27 20:07:30 UTC) #8
spang
lgtm with nits https://codereview.chromium.org/677113002/diff/80001/ui/events/ozone/evdev/event_converter_evdev_impl.cc File ui/events/ozone/evdev/event_converter_evdev_impl.cc (right): https://codereview.chromium.org/677113002/diff/80001/ui/events/ozone/evdev/event_converter_evdev_impl.cc#newcode106 ui/events/ozone/evdev/event_converter_evdev_impl.cc:106: return; Move this to the top ...
6 years, 1 month ago (2014-10-27 20:14:21 UTC) #9
vignatti (out of this project)
Thank you. https://codereview.chromium.org/677113002/diff/80001/ui/events/ozone/evdev/event_converter_evdev_impl.cc File ui/events/ozone/evdev/event_converter_evdev_impl.cc (right): https://codereview.chromium.org/677113002/diff/80001/ui/events/ozone/evdev/event_converter_evdev_impl.cc#newcode106 ui/events/ozone/evdev/event_converter_evdev_impl.cc:106: return; On 2014/10/27 20:14:21, spang wrote: > ...
6 years, 1 month ago (2014-10-27 20:22:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/677113002/100001
6 years, 1 month ago (2014-10-27 20:25:24 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 1 month ago (2014-10-27 22:37:21 UTC) #13
commit-bot: I haz the power
6 years, 1 month ago (2014-10-27 22:38:17 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e6e890a7ead1cca18d7f9fa9c75d9765c04e6c1a
Cr-Commit-Position: refs/heads/master@{#301465}

Powered by Google App Engine
This is Rietveld 408576698