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

Unified Diff: ui/events/ozone/evdev/event_converter_evdev.cc

Issue 2408063005: Expand event timestamp timebase check to ozone/android (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/android/motion_event_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/event_converter_evdev.cc
diff --git a/ui/events/ozone/evdev/event_converter_evdev.cc b/ui/events/ozone/evdev/event_converter_evdev.cc
index d0bf95b99d852aee7c61e48875ad4fbdd571516f..42b48ea92b9111c10e2f9d58b15b571705323fb8 100644
--- a/ui/events/ozone/evdev/event_converter_evdev.cc
+++ b/ui/events/ozone/evdev/event_converter_evdev.cc
@@ -154,7 +154,10 @@ void EventConverterEvdev::SetPalmSuppressionCallback(
base::TimeTicks EventConverterEvdev::TimeTicksFromInputEvent(
const input_event& event) {
- return ui::EventTimeStampFromSeconds(event.time.tv_sec) +
+ base::TimeTicks timestamp =
+ ui::EventTimeStampFromSeconds(event.time.tv_sec) +
base::TimeDelta::FromMicroseconds(event.time.tv_usec);
+ ValidateEventTimeClock(&timestamp);
+ return timestamp;
}
} // namespace ui
« no previous file with comments | « ui/events/android/motion_event_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698