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

Unified Diff: ui/events/base_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/base_event_utils.h
diff --git a/ui/events/base_event_utils.h b/ui/events/base_event_utils.h
index 6f07b09f81b0b480bb386007b4b53a2677fe75a5..7031cbad1706849064d757cfe2b425e6b2803b48 100644
--- a/ui/events/base_event_utils.h
+++ b/ui/events/base_event_utils.h
@@ -9,6 +9,10 @@
#include "ui/events/events_base_export.h"
+namespace base {
+class TimeTicks;
+}
+
// Common functions to be used for all platforms.
namespace ui {
@@ -18,6 +22,10 @@ EVENTS_BASE_EXPORT uint32_t GetNextTouchEventId();
// Checks if |flags| contains system key modifiers.
EVENTS_BASE_EXPORT bool IsSystemKeyModifier(int flags);
+EVENTS_BASE_EXPORT double EventTimeStampToSeconds(base::TimeTicks time_stamp);
miu 2016/05/16 20:05:35 Please add some comments to explain the usage of t
majidvp 2016/05/21 01:38:00 I will add a comment. As you mentioned these shoul
miu 2016/05/25 01:42:31 IIRC, mojo includes a serializer for the base::Tim
majidvp 2016/05/27 14:34:15 Mojo has convertor for TimeTicks but we are conver
+EVENTS_BASE_EXPORT base::TimeTicks EventTimeStampFromSeconds(
+ double time_stamp_seconds);
+
} // namespace ui
#endif // UI_EVENTS_BASE_EVENT_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698