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

Issue 150633005: evdev: Support device hotplug with udev (Closed)

Created:
6 years, 10 months ago by spang
Modified:
6 years, 10 months ago
Reviewers:
rjkroege, sadrul
CC:
chromium-reviews, rjkroege, kalyank, ozone-reviews_chromium.org
Visibility:
Public.

Description

evdev: Support device hotplug with udev This watches for new input devices and opens any that appear for event dispatching. This is only supported when use_udev==1. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248560

Patch Set 1 #

Patch Set 2 : fewer memory leaks #

Total comments: 9

Patch Set 3 : move udev code to device_manager_udev #

Patch Set 4 : argh, dropped the delete converters_[path] bits #

Patch Set 5 : reupload #

Total comments: 14

Patch Set 6 : virtual & DISALLOW_COPY_AND_ASSIGN #

Patch Set 7 : more virtual #

Total comments: 10

Patch Set 8 : add TODOs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -137 lines) Patch
M ui/events/events.gyp View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/device_manager_udev.h View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/device_manager_udev.cc View 1 2 3 4 5 6 7 1 chunk +207 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_device_info.cc View 2 chunks +0 lines, -4 lines 0 comments Download
M ui/events/ozone/evdev/event_factory.h View 1 2 3 chunks +19 lines, -15 lines 0 comments Download
M ui/events/ozone/evdev/event_factory.cc View 1 2 3 4 5 6 4 chunks +37 lines, -116 lines 0 comments Download
M ui/events/ozone/evdev/key_event_converter.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/scoped_udev.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
spang
6 years, 10 months ago (2014-01-30 21:56:25 UTC) #1
sadrul
https://codereview.chromium.org/150633005/diff/20001/ui/events/ozone/evdev/event_factory.cc File ui/events/ozone/evdev/event_factory.cc (right): https://codereview.chromium.org/150633005/diff/20001/ui/events/ozone/evdev/event_factory.cc#newcode248 ui/events/ozone/evdev/event_factory.cc:248: converters_[path] = converter.release(); Can we store scoped_ptr<>s in converters_? ...
6 years, 10 months ago (2014-01-30 22:10:35 UTC) #2
rjkroege
https://codereview.chromium.org/150633005/diff/20001/ui/events/ozone/evdev/event_device_info.cc File ui/events/ozone/evdev/event_device_info.cc (left): https://codereview.chromium.org/150633005/diff/20001/ui/events/ozone/evdev/event_device_info.cc#oldcode17 ui/events/ozone/evdev/event_device_info.cc:17: base::ThreadRestrictions::AssertIOAllowed(); for ozone, it would be really nice to ...
6 years, 10 months ago (2014-01-30 22:18:09 UTC) #3
spang
https://codereview.chromium.org/150633005/diff/20001/ui/events/ozone/evdev/event_device_info.cc File ui/events/ozone/evdev/event_device_info.cc (left): https://codereview.chromium.org/150633005/diff/20001/ui/events/ozone/evdev/event_device_info.cc#oldcode17 ui/events/ozone/evdev/event_device_info.cc:17: base::ThreadRestrictions::AssertIOAllowed(); On 2014/01/30 22:18:09, rjkroege wrote: > for ozone, ...
6 years, 10 months ago (2014-01-31 17:32:59 UTC) #4
sadrul
Mostly nits. LGTM. Rob might have additional input https://codereview.chromium.org/150633005/diff/20001/ui/events/ozone/evdev/event_factory.cc File ui/events/ozone/evdev/event_factory.cc (right): https://codereview.chromium.org/150633005/diff/20001/ui/events/ozone/evdev/event_factory.cc#newcode248 ui/events/ozone/evdev/event_factory.cc:248: converters_[path] ...
6 years, 10 months ago (2014-01-31 21:00:58 UTC) #5
spang
https://codereview.chromium.org/150633005/diff/20001/ui/events/ozone/evdev/event_factory.cc File ui/events/ozone/evdev/event_factory.cc (right): https://codereview.chromium.org/150633005/diff/20001/ui/events/ozone/evdev/event_factory.cc#newcode248 ui/events/ozone/evdev/event_factory.cc:248: converters_[path] = converter.release(); On 2014/01/31 21:00:59, sadrul wrote: > ...
6 years, 10 months ago (2014-01-31 22:02:07 UTC) #6
rjkroege
lgtm with concerns about threading choices and seeking tests. https://codereview.chromium.org/150633005/diff/370001/ui/events/ozone/evdev/device_manager_udev.cc File ui/events/ozone/evdev/device_manager_udev.cc (right): https://codereview.chromium.org/150633005/diff/370001/ui/events/ozone/evdev/device_manager_udev.cc#newcode49 ui/events/ozone/evdev/device_manager_udev.cc:49: ...
6 years, 10 months ago (2014-02-03 15:36:55 UTC) #7
spang
https://codereview.chromium.org/150633005/diff/370001/ui/events/ozone/evdev/device_manager_udev.cc File ui/events/ozone/evdev/device_manager_udev.cc (right): https://codereview.chromium.org/150633005/diff/370001/ui/events/ozone/evdev/device_manager_udev.cc#newcode49 ui/events/ozone/evdev/device_manager_udev.cc:49: else // SYS_LOG_DEBUG On 2014/02/03 15:36:55, rjkroege wrote: > ...
6 years, 10 months ago (2014-02-03 16:43:31 UTC) #8
spang
The CQ bit was checked by spang@chromium.org
6 years, 10 months ago (2014-02-03 17:30:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/spang@chromium.org/150633005/460001
6 years, 10 months ago (2014-02-03 17:30:36 UTC) #10
commit-bot: I haz the power
Change committed as 248560
6 years, 10 months ago (2014-02-03 20:06:50 UTC) #11
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-03 20:06:58 UTC) #12
commit-bot: I haz the power
6 years, 10 months ago (2014-02-03 20:06:59 UTC) #13
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698