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

Unified Diff: public/web/WebTouchPoint.h

Issue 750013004: Added experimental tilt and tiltDirection to the Touch interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed WebInputEventConversionTest Created 5 years, 9 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 | « Source/web/tests/WebInputEventConversionTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebTouchPoint.h
diff --git a/public/web/WebTouchPoint.h b/public/web/WebTouchPoint.h
index fc0231a5cab40a187d777ce808c233115d16969b..8b4bc72bbd3ebf7ee086548335afa13c9c27552f 100644
--- a/public/web/WebTouchPoint.h
+++ b/public/web/WebTouchPoint.h
@@ -33,6 +33,7 @@
#include "../platform/WebCommon.h"
#include "../platform/WebFloatPoint.h"
+#include <limits>
namespace blink {
@@ -45,6 +46,8 @@ public:
, radiusY(0)
, rotationAngle(0)
, force(0)
+ , tilt(std::numeric_limits<float>::quiet_NaN())
+ , tiltDirection(std::numeric_limits<float>::quiet_NaN())
{
}
@@ -66,6 +69,8 @@ public:
float radiusY;
float rotationAngle;
float force;
+ float tilt;
+ float tiltDirection;
};
} // namespace blink
« no previous file with comments | « Source/web/tests/WebInputEventConversionTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698