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

Unified Diff: ui/events/event_utils.cc

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.cc
diff --git a/ui/events/event_utils.cc b/ui/events/event_utils.cc
index 9291a589af5b7dc281714395c9bd61d41a487c54..cf23dbc9e69c2fa92fc5b4b917a824c1be64224f 100644
--- a/ui/events/event_utils.cc
+++ b/ui/events/event_utils.cc
@@ -60,9 +60,8 @@ int RegisterCustomEventType() {
return ++g_custom_event_types;
}
-base::TimeDelta EventTimeForNow() {
- return base::TimeDelta::FromInternalValue(
- base::TimeTicks::Now().ToInternalValue());
+base::TimeTicks EventTimeForNow() {
+ return base::TimeTicks::Now();
}
bool ShouldDefaultToNaturalScroll() {

Powered by Google App Engine
This is Rietveld 408576698