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

Unified Diff: Source/platform/PlatformTouchPoint.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: Make Touch.tilt available behind the enable-experimental-web-platform-features flag Created 5 years, 10 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: Source/platform/PlatformTouchPoint.h
diff --git a/Source/platform/PlatformTouchPoint.h b/Source/platform/PlatformTouchPoint.h
index 578f520d77140d0cdb3457b329f5f6db7c5cb18a..4dd6842ee801236ec43381ed504bdf5a4bf7adaa 100644
--- a/Source/platform/PlatformTouchPoint.h
+++ b/Source/platform/PlatformTouchPoint.h
@@ -39,6 +39,7 @@ public:
PlatformTouchPoint()
: m_id(0)
, m_rotationAngle(0)
+ , m_tilt(0)
, m_force(0)
{
}
@@ -49,6 +50,7 @@ public:
FloatPoint pos() const { return m_pos; }
FloatSize radius() const { return m_radius; }
float rotationAngle() const { return m_rotationAngle; }
+ float tilt() const { return m_tilt; }
float force() const { return m_force; }
protected:
@@ -58,6 +60,7 @@ protected:
FloatPoint m_pos;
FloatSize m_radius;
float m_rotationAngle;
+ float m_tilt;
float m_force;
};

Powered by Google App Engine
This is Rietveld 408576698