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

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: Rebase and non-const ref passed back 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
« no previous file with comments | « content/renderer/render_widget_unittest.cc ('k') | third_party/WebKit/Source/platform/PlatformTouchEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e011adf60ced3408b177005cb316b28c87b395b4..a1989ad42a746adfba93c4513801bc5fde31df62 100644
--- a/third_party/WebKit/Source/platform/PlatformEvent.h
+++ b/third_party/WebKit/Source/platform/PlatformEvent.h
@@ -122,6 +122,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; }
« no previous file with comments | « content/renderer/render_widget_unittest.cc ('k') | third_party/WebKit/Source/platform/PlatformTouchEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698