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

Unified Diff: third_party/WebKit/public/platform/WebInputEvent.h

Issue 2170913002: Generalize the main thread event queue into a common event queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits Created 4 years, 5 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/input/main_thread_event_queue_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebInputEvent.h
diff --git a/third_party/WebKit/public/platform/WebInputEvent.h b/third_party/WebKit/public/platform/WebInputEvent.h
index 04d6d32ead6ff7de0ae766ca3744280dd4ccb406..83f5613e04b402b278087aac0592db3d3273b3e6 100644
--- a/third_party/WebKit/public/platform/WebInputEvent.h
+++ b/third_party/WebKit/public/platform/WebInputEvent.h
@@ -246,6 +246,19 @@ public:
return GestureTypeFirst <= type && type <= GestureTypeLast;
}
+ bool isSameEventClass(const WebInputEvent& other) const
+ {
+ if (isMouseEventType(type))
+ return isMouseEventType(other.type);
+ if (isGestureEventType(type))
+ return isGestureEventType(other.type);
+ if (isTouchEventType(type))
+ return isTouchEventType(other.type);
+ if (isKeyboardEventType(type))
+ return isKeyboardEventType(other.type);
+ return type == other.type;
+ }
+
protected:
explicit WebInputEvent(unsigned sizeParam)
{
« no previous file with comments | « content/renderer/input/main_thread_event_queue_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698