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

Unified Diff: sky/engine/public/platform/WebInputEvent.h

Issue 866213004: Switch Sky to pointer events (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: nits Created 5 years, 11 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: 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)
{

Powered by Google App Engine
This is Rietveld 408576698