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

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: 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/core/page/EventHandler.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/PlatformTouchPoint.h
diff --git a/Source/platform/PlatformTouchPoint.h b/Source/platform/PlatformTouchPoint.h
index 578f520d77140d0cdb3457b329f5f6db7c5cb18a..a2eeb95a436c88cbe2255eea9c2231aa8e6e200f 100644
--- a/Source/platform/PlatformTouchPoint.h
+++ b/Source/platform/PlatformTouchPoint.h
@@ -40,6 +40,8 @@ public:
: m_id(0)
, m_rotationAngle(0)
, m_force(0)
+ , m_tilt(0)
+ , m_tiltDirection(0)
{
}
@@ -50,6 +52,8 @@ public:
FloatSize radius() const { return m_radius; }
float rotationAngle() const { return m_rotationAngle; }
float force() const { return m_force; }
+ float tilt() const { return m_tilt; }
+ float tiltDirection() const { return m_tiltDirection; }
protected:
unsigned m_id;
@@ -59,6 +63,8 @@ protected:
FloatSize m_radius;
float m_rotationAngle;
float m_force;
+ float m_tilt;
+ float m_tiltDirection;
};
}
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698