Descriptionozone: evdev: Use kernel timestamps for mouse events
This change adds a new constructor for ui::MouseEvent that takes an accurate
event time for use by the ozone evdev backend. For ui::MouseWheelEvent the
existing constructor was extended to include the timestamp and the existing
users updated.
For mouse moves in the generic handler the time of the EV_SYN message is
used as the time for the event. In events from the gesture library the end time
of the gesture is used. For purely synthetic events EventTimeForNow() is used
which uses the same time source (CLOCK_MONOTONIC) as evdev.
BUG=450341
TEST=Interactive testing on link_freon.
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_chromium_chromeos_ozone_rel_ng
Committed: https://crrev.com/c00e53cbb0968bd2fdf6e350f122bf67e5d7f468
Cr-Commit-Position: refs/heads/master@{#317091}
Patch Set 1 #Patch Set 2 : Rebase on MouseEvent timestamp changes & fix stime feedback #
Total comments: 2
Patch Set 3 : Fix rebase error #Messages
Total messages: 14 (4 generated)
|