diff options
Diffstat (limited to 'ui/base/events/event_utils.h')
-rw-r--r-- | ui/base/events/event_utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/base/events/event_utils.h b/ui/base/events/event_utils.h index 77e542f..49a6b09 100644 --- a/ui/base/events/event_utils.h +++ b/ui/base/events/event_utils.h @@ -35,9 +35,13 @@ UI_EXPORT EventType EventTypeFromNative(const base::NativeEvent& native_event); // Get the EventFlags from a native event. UI_EXPORT int EventFlagsFromNative(const base::NativeEvent& native_event); +// Get the timestamp from a native event. UI_EXPORT base::TimeDelta EventTimeFromNative( const base::NativeEvent& native_event); +// Create a timestamp based on the current time. +UI_EXPORT base::TimeDelta 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 // this "root window" and how it maps to platform-specific drawing surfaces is |