Chromium Code Reviews| Index: sky/engine/public/platform/WebInputEvent.h |
| diff --git a/sky/engine/public/platform/WebInputEvent.h b/sky/engine/public/platform/WebInputEvent.h |
| index ed8138777056e152357f68981bf66c03962b9ac2..a3f5161956ef0d37cb12775b57068ae532cfb61e 100644 |
| --- a/sky/engine/public/platform/WebInputEvent.h |
| +++ b/sky/engine/public/platform/WebInputEvent.h |
| @@ -187,6 +187,14 @@ public: |
| Type type; |
| int modifiers; |
| + static bool isPointerEventType(int type) |
| + { |
| + return type == PointerDown || |
|
ojan
2015/01/23 10:23:55
Probably premature optimization, but we could save
abarth-chromium
2015/01/23 16:51:33
Ok. That's what the other similar functions do.
|
| + type == PointerMove || |
| + type == PointerUp || |
| + type == PointerCancel; |
| + } |
| + |
| // Returns true if the WebInputEvent |type| is a mouse event. |
| static bool isMouseEventType(int type) |
| { |