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

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: rebase Created 4 years, 6 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/event_unittest.cc ('k') | ui/events/event_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_utils.h
diff --git a/ui/events/event_utils.h b/ui/events/event_utils.h
index 59dba88a9b76e58db1d071125cec3e753191b516..bc8906ceceecd9b7672b5736b3f7ba4a18b0a573 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
« no previous file with comments | « ui/events/event_unittest.cc ('k') | ui/events/event_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698