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

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

Issue 823873004: Add basic PointerEvent support in NewEventHandler (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: git cl try 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
« no previous file with comments | « sky/engine/core/rendering/RenderView.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/public/platform/WebInputEvent.h
diff --git a/sky/engine/public/platform/WebInputEvent.h b/sky/engine/public/platform/WebInputEvent.h
index ea026b03df65e535d3431c0c27c7d04ee5ccaaf4..ed8138777056e152357f68981bf66c03962b9ac2 100644
--- a/sky/engine/public/platform/WebInputEvent.h
+++ b/sky/engine/public/platform/WebInputEvent.h
@@ -234,23 +234,23 @@ public:
int pointer = 0;
Kind kind = Touch;
- double x = 0;
- double y = 0;
- double dx = 0;
- double dy = 0;
+ float x = 0;
+ float y = 0;
+ float dx = 0;
+ float dy = 0;
int buttons = 0;
- double pressure = 0;
- double pressureMin = 0;
- double pressureMax = 0;
- double distance = 0;
- double distanceMin = 0;
- double distanceMax = 0;
- double radiusMajor = 0;
- double radiusMinor = 0;
- double radiusMin = 0;
- double radiusMax = 0;
- double orientation = 0;
- double tilt = 0;
+ float pressure = 0;
+ float pressureMin = 0;
+ float pressureMax = 0;
+ float distance = 0;
+ float distanceMin = 0;
+ float distanceMax = 0;
+ float radiusMajor = 0;
+ float radiusMinor = 0;
+ float radiusMin = 0;
+ float radiusMax = 0;
+ float orientation = 0;
+ float tilt = 0;
WebPointerEvent() : WebInputEvent(sizeof(WebPointerEvent)) {}
};
« no previous file with comments | « sky/engine/core/rendering/RenderView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698