Index: ui/events/event.h |
diff --git a/ui/events/event.h b/ui/events/event.h |
index 56fd74c85d53d17d000fa1b9c6c0796104379056..52006550dac593bf44179d724cf64bca9ff9338c 100644 |
--- a/ui/events/event.h |
+++ b/ui/events/event.h |
@@ -203,6 +203,12 @@ class EVENTS_EXPORT Event { |
// Returns true if the event has a valid |native_event_|. |
bool HasNativeEvent() const; |
+ // Marks the event as not participating in synchronous gesture recognition. |
+ void DisableSynchronousHandling(); |
+ bool synchronous_handling_disabled() const { |
+ return !!(result_ & ER_DISABLE_SYNC_HANDLING); |
+ } |
+ |
// Immediately stops the propagation of the event. This must be called only |
// from an EventHandler during an event-dispatch. Any event handler that may |
// be in the list will not receive the event after this is called. |