ozone: evdev: Populate keyboard list on DeviceDataManager
commit9ad06b87192fa8789c1e8fc6fdd21423883cd2d9
authorspang <spang@chromium.org>
Sat, 13 Dec 2014 03:15:05 +0000 (12 19:15 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 13 Dec 2014 03:15:42 +0000 (13 03:15 +0000)
treee3242e97f6f74f50247bd86cf0acab76c567beb6
parent3e5ec5ff4db2a2d5952c84b6b189b834f2084f89
ozone: evdev: Populate keyboard list on DeviceDataManager

Add a method to EventDeviceInfo to determine if the device has a
keyboard on it based on the key bitmap. We'll require the first 31 keys
to be considered a keyboard; this is compatible with udev.

TEST=chrome on link_freon & rush_ryu
BUG=437539

Review URL: https://codereview.chromium.org/797483002

Cr-Commit-Position: refs/heads/master@{#308237}
ui/events/ozone/evdev/event_converter_evdev.cc
ui/events/ozone/evdev/event_converter_evdev.h
ui/events/ozone/evdev/event_converter_evdev_impl.cc
ui/events/ozone/evdev/event_converter_evdev_impl.h
ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
ui/events/ozone/evdev/event_device_info.cc
ui/events/ozone/evdev/event_device_info.h
ui/events/ozone/evdev/event_factory_evdev.cc
ui/events/ozone/evdev/event_factory_evdev.h
ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.cc
ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h