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

Unified Diff: third_party/WebKit/public/platform/WebPointerProperties.h

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
« no previous file with comments | « third_party/WebKit/Source/web/WebInputEvent.cpp ('k') | ui/events/blink/web_input_event_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebPointerProperties.h
diff --git a/third_party/WebKit/public/platform/WebPointerProperties.h b/third_party/WebKit/public/platform/WebPointerProperties.h
index 0373dac2f1f564877baaa8bca80f82ff6c7109ac..86f2960081b8227573c54db16384cacb5094edbd 100644
--- a/third_party/WebKit/public/platform/WebPointerProperties.h
+++ b/third_party/WebKit/public/platform/WebPointerProperties.h
@@ -22,6 +22,8 @@ class WebPointerProperties {
force(std::numeric_limits<float>::quiet_NaN()),
tiltX(0),
tiltY(0),
+ tangentialPressure(0.0f),
+ twist(0),
button(Button::NoButton),
pointerType(PointerType::Unknown) {}
@@ -58,6 +60,16 @@ class WebPointerProperties {
int tiltX;
int tiltY;
+ // The normalized tangential pressure (or barrel pressure), typically set by
+ // an additional control of the stylus, which has a range of [-1,1], where 0
+ // is the neutral position of the control. Always 0 if the device does not
+ // support it.
+ float tangentialPressure;
+
+ // The clockwise rotation of a pen stylus around its own major axis, in
+ // degrees in the range [0,359]. Always 0 if the device does not support it.
+ int twist;
+
Button button;
PointerType pointerType;
};
« no previous file with comments | « third_party/WebKit/Source/web/WebInputEvent.cpp ('k') | ui/events/blink/web_input_event_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698