Index: ui/events/event_utils.h |
diff --git a/ui/events/event_utils.h b/ui/events/event_utils.h |
index c7a51aab0abb3ffe0dd50e08512f524e41dbac28..35a9b73194175c8421b3787a38bf6c79c8e5b3ae 100644 |
--- a/ui/events/event_utils.h |
+++ b/ui/events/event_utils.h |
@@ -181,6 +181,12 @@ EVENTS_EXPORT void UpdateX11EventForChangedButtonFlags(MouseEvent* event); |
// Registers a custom event type. |
EVENTS_EXPORT int RegisterCustomEventType(); |
+// Returns true if |event_flags| indicate the event came from a mouse event. |
+EVENTS_EXPORT bool IsMouseEventFromFlags(int event_flags); |
+ |
+// Returns true if |event_flags| indicate the event came from a touch event. |
+EVENTS_EXPORT bool IsTouchEventFromFlags(int event_flags); |
+ |
} // namespace ui |
#endif // UI_EVENTS_EVENT_UTILS_H_ |