Chromium Code Reviews| 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_ |