Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Issue 889673004: ozone: evdev: Use kernel timestamps for mouse events (Closed)

Created:
5 years, 10 months ago by robert.bradford
Modified:
5 years, 10 months ago
Reviewers:
*sadrul, *spang
CC:
chromium-reviews, ozone-reviews_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tdresser+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, jdduke+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -56 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M ui/events/event.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/event.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/device_event_dispatcher_evdev.h View 3 chunks +10 lines, -3 lines 0 comments Download
M ui/events/ozone/evdev/device_event_dispatcher_evdev.cc View 3 chunks +13 lines, -6 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev_impl.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.cc View 1 4 chunks +5 lines, -4 lines 0 comments Download
M ui/events/ozone/evdev/input_injector_evdev.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc View 1 4 chunks +15 lines, -15 lines 0 comments Download
M ui/events/ozone/evdev/tablet_event_converter_evdev.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/ozone/evdev/tablet_event_converter_evdev.cc View 3 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
robert.bradford
spang@chromium.org: Please take a look at ui/events/ozone changes. I removed some of your TODOs in ...
5 years, 10 months ago (2015-02-12 12:49:38 UTC) #3
spang
Just one comment: stime_t is just a double, should be no need to const& it. ...
5 years, 10 months ago (2015-02-12 21:27:06 UTC) #4
robert.bradford
Updated version rebased on top of the ctor change patch. sadrul@: can you review the ...
5 years, 10 months ago (2015-02-19 15:55:53 UTC) #6
sadrul
https://codereview.chromium.org/889673004/diff/20001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/889673004/diff/20001/ui/events/event.cc#newcode497 ui/events/event.cc:497: set_time_stamp(time_stamp); Is this necessary?
5 years, 10 months ago (2015-02-19 17:23:20 UTC) #7
robert.bradford
https://codereview.chromium.org/889673004/diff/20001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/889673004/diff/20001/ui/events/event.cc#newcode497 ui/events/event.cc:497: set_time_stamp(time_stamp); On 2015/02/19 17:23:20, sadrul wrote: > Is this ...
5 years, 10 months ago (2015-02-19 17:30:44 UTC) #8
sadrul
lgtm
5 years, 10 months ago (2015-02-19 17:31:15 UTC) #9
spang
lgtm
5 years, 10 months ago (2015-02-19 17:40:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/889673004/40001
5 years, 10 months ago (2015-02-19 18:01:06 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-19 19:13:54 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 19:15:16 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c00e53cbb0968bd2fdf6e350f122bf67e5d7f468
Cr-Commit-Position: refs/heads/master@{#317091}

Powered by Google App Engine
This is Rietveld 408576698