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

Unified Diff: ui/events/event_utils.h

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gesture recognizer tests Created 4 years, 7 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
Index: ui/events/event_utils.h
diff --git a/ui/events/event_utils.h b/ui/events/event_utils.h
index 8bf7301b855da3043d4176a7aa6e7c743d005f1d..a16c706e052c2aa8efb1162c9318a75772f27b70 100644
--- a/ui/events/event_utils.h
+++ b/ui/events/event_utils.h
@@ -29,7 +29,7 @@ class Vector2d;
}
namespace base {
-class TimeDelta;
+class TimeTicks;
}
// Common functions to be used for all platforms except Android.
@@ -54,11 +54,13 @@ EVENTS_EXPORT int EventFlagsFromNative(const base::NativeEvent& native_event);
// Get the timestamp from a native event.
// Note: This is not a pure function meaning that multiple applications on the
// same native event may return different values.
-EVENTS_EXPORT base::TimeDelta EventTimeFromNative(
+EVENTS_EXPORT base::TimeTicks EventTimeFromNative(
const base::NativeEvent& native_event);
// Create a timestamp based on the current time.
-EVENTS_EXPORT base::TimeDelta EventTimeForNow();
+// TODO(majidvp): Get rid of this in favor of call to TimeTicks::Now().
+// crbug.com/453559
+EVENTS_EXPORT base::TimeTicks EventTimeForNow();
// Get the location from a native event. The coordinate system of the resultant
// |Point| has the origin at top-left of the "root window". The nature of

Powered by Google App Engine
This is Rietveld 408576698