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

Unified Diff: third_party/WebKit/Source/core/events/PointerEventFactory.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/PointerEventFactory.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
index 8271c17c3c1e74b2c7c68bce0f96489f14e1e84c..c7ea47128bdca0d0a62f243e737f1c4282f2f278 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
@@ -129,6 +129,9 @@ void updateTouchPointerEventInit(const PlatformTouchPoint& touchPoint,
getPointerEventPressure(touchPoint.force(), pointerEventInit->buttons()));
pointerEventInit->setTiltX(touchPoint.pointerProperties().tiltX);
pointerEventInit->setTiltY(touchPoint.pointerProperties().tiltY);
+ pointerEventInit->setTangentialPressure(
+ touchPoint.pointerProperties().tangentialPressure);
+ pointerEventInit->setTwist(touchPoint.pointerProperties().twist);
}
void updateMousePointerEventInit(const PlatformMouseEvent& mouseEvent,
@@ -159,6 +162,9 @@ void updateMousePointerEventInit(const PlatformMouseEvent& mouseEvent,
mouseEvent.pointerProperties().force, pointerEventInit->buttons()));
pointerEventInit->setTiltX(mouseEvent.pointerProperties().tiltX);
pointerEventInit->setTiltY(mouseEvent.pointerProperties().tiltY);
+ pointerEventInit->setTangentialPressure(
+ mouseEvent.pointerProperties().tangentialPressure);
+ pointerEventInit->setTwist(mouseEvent.pointerProperties().twist);
}
} // namespace
@@ -369,6 +375,8 @@ PointerEvent* PointerEventFactory::createPointerEventFrom(
pointerEventInit.setPressure(pointerEvent->pressure());
pointerEventInit.setTiltX(pointerEvent->tiltX());
pointerEventInit.setTiltY(pointerEvent->tiltY());
+ pointerEventInit.setTangentialPressure(pointerEvent->tangentialPressure());
+ pointerEventInit.setTwist(pointerEvent->twist());
pointerEventInit.setView(pointerEvent->view());
setEventSpecificFields(pointerEventInit, type);
« no previous file with comments | « third_party/WebKit/Source/core/events/PointerEvent.idl ('k') | third_party/WebKit/Source/core/events/PointerEventInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698