ozone: Handle pressure and tilt for stylus devices
commit953aa1bd2eef603489045f760a9c35ce50aa7c4f
authorrobert.bradford <robert.bradford@intel.com>
Mon, 24 Aug 2015 11:48:09 +0000 (24 04:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 24 Aug 2015 11:48:46 +0000 (24 11:48 +0000)
tree1d12c1dce429129a9e703a147e7082627b4ce0d7
parent799bc7e8e0c714a6177c1c47c0706f0b85659b7a
ozone: Handle pressure and tilt for stylus devices

With the enablement of the W3C Pointer Events specification it is now possible
to interpret evdev events for pressure and tilt and expose them through the
ui::MouseEvent's PointerDetails. We can also now expose that this mouse event
is really from a pen type device.

In order to work better with the Ozone input layer the method to set the
PointerDetails for MouseEvent were changed to accept a complete PointerDetails
object rather than per member mutators.

BUG=516706
TEST=TabletEventConverterTest enhanced to look at tilt and pressure values,
interactive testing on link with stylus device show it continues to behave as
expected.

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

Cr-Commit-Position: refs/heads/master@{#345049}
ui/events/event.h
ui/events/event_unittest.cc
ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
ui/events/ozone/evdev/device_event_dispatcher_evdev.h
ui/events/ozone/evdev/event_converter_evdev_impl.cc
ui/events/ozone/evdev/event_factory_evdev.cc
ui/events/ozone/evdev/input_injector_evdev.cc
ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc
ui/events/ozone/evdev/tablet_event_converter_evdev.cc
ui/events/ozone/evdev/tablet_event_converter_evdev.h
ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc