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; |