| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_EVENTS_BASE_EVENT_UTILS_H_ | 5 #ifndef UI_EVENTS_BASE_EVENT_UTILS_H_ |
| 6 #define UI_EVENTS_BASE_EVENT_UTILS_H_ | 6 #define UI_EVENTS_BASE_EVENT_UTILS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 EVENTS_BASE_EXPORT double EventTimeStampToSeconds(base::TimeTicks time_stamp); | 36 EVENTS_BASE_EXPORT double EventTimeStampToSeconds(base::TimeTicks time_stamp); |
| 37 | 37 |
| 38 // Converts an event timestamp in seconds to TimeTicks. | 38 // Converts an event timestamp in seconds to TimeTicks. |
| 39 // WARNING: This should only be used when interfacing with platform code that | 39 // WARNING: This should only be used when interfacing with platform code that |
| 40 // does not use base::Time* types. | 40 // does not use base::Time* types. |
| 41 EVENTS_BASE_EXPORT base::TimeTicks EventTimeStampFromSeconds( | 41 EVENTS_BASE_EXPORT base::TimeTicks EventTimeStampFromSeconds( |
| 42 double time_stamp_seconds); | 42 double time_stamp_seconds); |
| 43 | 43 |
| 44 } // namespace ui | 44 } // namespace ui |
| 45 | 45 |
| 46 extern EVENTS_BASE_EXPORT bool g_no_mock_time; |
| 47 |
| 46 #endif // UI_EVENTS_BASE_EVENT_UTILS_H_ | 48 #endif // UI_EVENTS_BASE_EVENT_UTILS_H_ |
| OLD | NEW |