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

Unified Diff: public/web/WebTouchPoint.h

Issue 1192563002: Pass real tilt information to PointerEvents. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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: public/web/WebTouchPoint.h
diff --git a/public/web/WebTouchPoint.h b/public/web/WebTouchPoint.h
index fc0231a5cab40a187d777ce808c233115d16969b..7582a01361f131c60a9d99d1113bdd8e6fce98b8 100644
--- a/public/web/WebTouchPoint.h
+++ b/public/web/WebTouchPoint.h
@@ -45,6 +45,12 @@ public:
, radiusY(0)
, rotationAngle(0)
, force(0)
+ , tilt(0)
+ , tiltRad(0)
+ , tiltOrientation(0)
+ , tiltOrientationRad(0)
+ , tiltX(0)
+ , tiltY(0)
{
}
@@ -66,6 +72,14 @@ public:
float radiusY;
float rotationAngle;
float force;
+ // TODO(e_hakkinen): Leave only either tilt and tiltOrientation, tiltRad and
+ // tiltOrientationRad or tiltX and tiltY.
+ float tilt;
+ float tiltRad;
+ float tiltOrientation;
+ float tiltOrientationRad;
+ float tiltX;
mustaq 2015/06/17 19:43:28 I think we should use type 'int' for tiltX and til
USE eero AT chromium.org 2015/06/18 11:34:08 Done.
+ float tiltY;
};
} // namespace blink
« Source/web/WebInputEventConversion.cpp ('K') | « Source/web/WebInputEventConversion.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698