Descriptionozone: 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.
Committed: https://crrev.com/953aa1bd2eef603489045f760a9c35ce50aa7c4f
Cr-Commit-Position: refs/heads/master@{#345049}
Patch Set 1 #Patch Set 2 : Update for mutator change in PointerDetails CL #
Total comments: 2
Patch Set 3 : Address spang@ feedback #
Total comments: 2
Patch Set 4 : Use PointerDetails directly #
Total comments: 1
Patch Set 5 : Drop now unused mutators. #Messages
Total messages: 16 (3 generated)
|