ozone: Add support for stylus barrel button

Desktop / Chromium - Dennis Kempin [chromium.org] - 10 August 2017 17:31 EDT

The stylus barrel button is exposed to Chrome UI as a new event flag. We do not generate button events, but just pass along the current state of the button with reported touch events.

BUG=b:63816279 TEST=unit test with simplified log included

Change-Id: Iea5164e388831dbc8a2d411e60571f0157f572b6 Reviewed-on: https://chromium-review.googlesource.com/576727 Commit-Queue: Dennis Kempin

0d8ce79 ozone: Add support for stylus barrel button
.../ozone/evdev/device_event_dispatcher_evdev.cc | 6 +-
.../ozone/evdev/device_event_dispatcher_evdev.h | 4 +-
ui/events/ozone/evdev/event_device_test_util.cc | 30 ++++++
ui/events/ozone/evdev/event_device_test_util.h | 1 +
ui/events/ozone/evdev/event_factory_evdev.cc | 3 +-
ui/events/ozone/evdev/touch_evdev_types.h | 4 +-
.../ozone/evdev/touch_event_converter_evdev.cc | 45 +++------
.../evdev/touch_event_converter_evdev_unittest.cc | 110 +++++++++++++++++++++
8 files changed, 167 insertions(+), 36 deletions(-)

Upstream: git.chromium.org


  • Share