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

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

Issue 2587393004: Add tangentialPressure and twist properties to PointerEvent on Mac (Closed)
Patch Set: rebase Created 3 years, 11 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.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEvent.cpp b/third_party/WebKit/Source/core/events/PointerEvent.cpp
index a609321e15ad2673ccdd0dbc2c378ae2606d0554..8b416ad4541949e45538f63a32497784980fb225 100644
--- a/third_party/WebKit/Source/core/events/PointerEvent.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEvent.cpp
@@ -18,6 +18,8 @@ PointerEvent::PointerEvent(const AtomicString& type,
m_pressure(0),
m_tiltX(0),
m_tiltY(0),
+ m_tangentialPressure(0),
+ m_twist(0),
m_isPrimary(false) {
if (initializer.hasPointerId())
m_pointerId = initializer.pointerId();
@@ -31,6 +33,10 @@ PointerEvent::PointerEvent(const AtomicString& type,
m_tiltX = initializer.tiltX();
if (initializer.hasTiltY())
m_tiltY = initializer.tiltY();
+ if (initializer.hasTangentialPressure())
+ m_tangentialPressure = initializer.tangentialPressure();
+ if (initializer.hasTwist())
+ m_twist = initializer.twist();
if (initializer.hasPointerType())
m_pointerType = initializer.pointerType();
if (initializer.hasIsPrimary())
« no previous file with comments | « third_party/WebKit/Source/core/events/PointerEvent.h ('k') | third_party/WebKit/Source/core/events/PointerEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698