Index: ui/events/event_utils.h |
diff --git a/ui/events/event_utils.h b/ui/events/event_utils.h |
index 9c40ab5fa943386e9b5d550f59b3a2fc1628a052..3921c4c9b5129c4769f6279f8dbad0aa86a8fdc5 100644 |
--- a/ui/events/event_utils.h |
+++ b/ui/events/event_utils.h |
@@ -84,6 +84,15 @@ EVENTS_EXPORT int GetChangedMouseButtonFlagsFromNative( |
EVENTS_EXPORT gfx::Vector2d GetMouseWheelOffset( |
const base::NativeEvent& native_event); |
+// Returns a copy of |native_event|. Depending on the platform, this copy may |
+// need to be deleted with ReleaseCopiedNativeEvent(). |
+EVENTS_EXPORT base::NativeEvent CopyNativeEvent( |
+ const base::NativeEvent& native_event); |
+ |
+// Delete a |native_event| previously created by CopyNativeEvent(). |
+EVENTS_EXPORT void ReleaseCopiedNativeEvent( |
sadrul
2014/04/24 19:47:12
You probably don't need to export these two functi
tapted
2014/04/25 03:44:55
Done. I realised that too :) but went for export f
|
+ const base::NativeEvent& native_event); |
+ |
// Gets the touch id from a native event. |
EVENTS_EXPORT int GetTouchId(const base::NativeEvent& native_event); |