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

Unified Diff: third_party/WebKit/Source/core/events/PointerEvent.h

Issue 2587393004: Add tangentialPressure and twist properties to PointerEvent on Mac (Closed)
Patch Set: pressure mac Created 3 years, 12 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: third_party/WebKit/Source/core/events/PointerEvent.h
diff --git a/third_party/WebKit/Source/core/events/PointerEvent.h b/third_party/WebKit/Source/core/events/PointerEvent.h
index e6479485554f8142d250c04452152546c9a99f5c..38e82a5117b3c762899cfa7f79751b086b82f42f 100644
--- a/third_party/WebKit/Source/core/events/PointerEvent.h
+++ b/third_party/WebKit/Source/core/events/PointerEvent.h
@@ -26,6 +26,8 @@ class CORE_EXPORT PointerEvent final : public MouseEvent {
float pressure() const { return m_pressure; }
long tiltX() const { return m_tiltX; }
long tiltY() const { return m_tiltY; }
+ float tangentialPressure() const { return m_tangentialPressure; }
+ long twist() const { return m_twist; }
const String& pointerType() const { return m_pointerType; }
bool isPrimary() const { return m_isPrimary; }
@@ -48,6 +50,8 @@ class CORE_EXPORT PointerEvent final : public MouseEvent {
float m_pressure;
long m_tiltX;
long m_tiltY;
+ float m_tangentialPressure;
dtapuska 2017/01/03 18:32:48 should this be a double to preserve data from java
mustaq 2017/01/03 19:09:24 I think this is fine because the spec specifies "f
lanwei 2017/01/05 16:13:41 Acknowledged.
+ long m_twist;
String m_pointerType;
bool m_isPrimary;

Powered by Google App Engine
This is Rietveld 408576698