| 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 3789ec64657f5c516fd31800bddafd45dc667fac..77741bd20e71f934244633b0ccfaa9578200429d 100644
|
| --- a/ui/events/gesture_detection/motion_event_generic.cc
|
| +++ b/ui/events/gesture_detection/motion_event_generic.cc
|
| @@ -23,6 +23,7 @@ PointerProperties::PointerProperties(float x, float y, float touch_major)
|
| touch_major(touch_major),
|
| touch_minor(0),
|
| orientation(0),
|
| + tilt(0),
|
| source_device_id(0) {
|
| }
|
|
|
| @@ -38,6 +39,8 @@ PointerProperties::PointerProperties(const MotionEvent& event,
|
| touch_major(event.GetTouchMajor(pointer_index)),
|
| touch_minor(event.GetTouchMinor(pointer_index)),
|
| orientation(event.GetOrientation(pointer_index)),
|
| + tilt(event.GetTilt(pointer_index)),
|
| + tiltDirection(event.GetTiltDirection(pointer_index)),
|
| source_device_id(0) {
|
| }
|
|
|
| @@ -128,6 +131,16 @@ float MotionEventGeneric::GetOrientation(size_t pointer_index) const {
|
| return pointers_[pointer_index].orientation;
|
| }
|
|
|
| +float MotionEventGeneric::GetTilt(size_t pointer_index) const {
|
| + DCHECK_LT(pointer_index, pointers_->size());
|
| + return pointers_[pointer_index].tilt;
|
| +}
|
| +
|
| +float MotionEventGeneric::GetTiltDirection(size_t pointer_index) const {
|
| + DCHECK_LT(pointer_index, pointers_->size());
|
| + return pointers_[pointer_index].tiltDirection;
|
| +}
|
| +
|
| float MotionEventGeneric::GetPressure(size_t pointer_index) const {
|
| DCHECK_LT(pointer_index, pointers_->size());
|
| return pointers_[pointer_index].pressure;
|
|
|