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

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

Issue 2162143002: Don't use PostTask queueing between compositor and main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't ack mouse move right away send them unthrottled 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
Index: third_party/WebKit/public/web/WebInputEvent.h
diff --git a/third_party/WebKit/public/web/WebInputEvent.h b/third_party/WebKit/public/web/WebInputEvent.h
index 98a1b1859e44e2986f8d50239b58d6681b4da2be..c85e8a15c0b0c23d03ba848ed6e4521de0941fbd 100644
--- a/third_party/WebKit/public/web/WebInputEvent.h
+++ b/third_party/WebKit/public/web/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)
{

Powered by Google App Engine
This is Rietveld 408576698