Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: ui/events/event.h

Issue 680413006: Re-enable Eager Gesture Recognition on Aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698