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

Unified Diff: third_party/WebKit/Source/platform/PlatformEvent.h

Issue 1888163003: Articulate the cancel behavior in the WebTouchEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjusted comment Created 4 years, 8 months 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: third_party/WebKit/Source/platform/PlatformEvent.h
diff --git a/third_party/WebKit/Source/platform/PlatformEvent.h b/third_party/WebKit/Source/platform/PlatformEvent.h
index 62b6cd29025e7d954a301869e6253e41b14578ae..909f298eb4d536909d0bb35d643966b359a4999f 100644
--- a/third_party/WebKit/Source/platform/PlatformEvent.h
+++ b/third_party/WebKit/Source/platform/PlatformEvent.h
@@ -121,6 +121,19 @@ public:
RailsModeVertical = 2,
};
+ // These values are direct mappings of the values in WebInputEvent
+ // so the values can be cast between the enumerations. static_asserts
+ // checking this are in web/WebInputEventConversion.cpp.
+ enum DispatchType {
+ Blocking,
+ EventNonBlocking,
+ // All listeners are passive.
+ ListenersNonBlockingPassive,
+ // This value represents a state which would have normally blocking
+ // but was forced to be non-blocking.
+ ListenersForcedNonBlockingPassive,
+ };
+
EventType type() const { return static_cast<EventType>(m_type); }
bool shiftKey() const { return m_modifiers & ShiftKey; }

Powered by Google App Engine
This is Rietveld 408576698