| 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)
|
| {
|
|
|