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

Unified Diff: ui/events/gesture_detection/motion_event_generic.cc

Issue 494833003: Completed webkit radiusX, radiusY and rotationAngle handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: ui/events/gesture_detection/motion_event_generic.cc
diff --git a/ui/events/gesture_detection/motion_event_generic.cc b/ui/events/gesture_detection/motion_event_generic.cc
index b76a37e05dfbb2fdcd4edd4662fc51a67a0568bf..eff0345024a7d60ebd25cb48a71c98712d75d14a 100644
--- a/ui/events/gesture_detection/motion_event_generic.cc
+++ b/ui/events/gesture_detection/motion_event_generic.cc
@@ -16,7 +16,9 @@ PointerProperties::PointerProperties()
raw_x(0),
raw_y(0),
pressure(0),
- touch_major(0) {
+ touch_major(0),
+ touch_minor(0),
+ orientation(0) {
}
PointerProperties::PointerProperties(float x, float y)
@@ -27,7 +29,9 @@ PointerProperties::PointerProperties(float x, float y)
raw_x(x),
raw_y(y),
pressure(0),
- touch_major(0) {
+ touch_major(0),
+ touch_minor(0),
+ orientation(0) {
}
MotionEventGeneric::MotionEventGeneric()
@@ -103,6 +107,16 @@ float MotionEventGeneric::GetTouchMajor(size_t pointer_index) const {
return pointers_[pointer_index].touch_major;
}
+float MotionEventGeneric::GetTouchMinor(size_t pointer_index) const {
+ DCHECK_LT(pointer_index, pointers_->size());
+ return pointers_[pointer_index].touch_minor;
+}
+
+float MotionEventGeneric::GetOrientation(size_t pointer_index) const {
+ DCHECK_LT(pointer_index, pointers_->size());
+ return pointers_[pointer_index].orientation;
+}
+
float MotionEventGeneric::GetPressure(size_t pointer_index) const {
DCHECK_LT(pointer_index, pointers_->size());
return pointers_[pointer_index].pressure;

Powered by Google App Engine
This is Rietveld 408576698