Index: ui/events/event.cc |
diff --git a/ui/events/event.cc b/ui/events/event.cc |
index 894d5b0f2aded44d4880e4ce2d25b043c4d4477e..4d0e66bb670ad1e9f942ea841cb91e9457f79189 100644 |
--- a/ui/events/event.cc |
+++ b/ui/events/event.cc |
@@ -515,6 +515,7 @@ TouchEvent::TouchEvent(const base::NativeEvent& native_event) |
radius_x_(GetTouchRadiusX(native_event)), |
radius_y_(GetTouchRadiusY(native_event)), |
rotation_angle_(GetTouchAngle(native_event)), |
+ tilt_(GetTouchTilt(native_event)), |
force_(GetTouchForce(native_event)) { |
latency()->AddLatencyNumberWithTimestamp( |
INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, |
@@ -538,6 +539,7 @@ TouchEvent::TouchEvent(EventType type, |
radius_x_(0.0f), |
radius_y_(0.0f), |
rotation_angle_(0.0f), |
+ tilt_(0.0f), |
force_(0.0f) { |
latency()->AddLatencyNumber(INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0); |
} |
@@ -550,12 +552,14 @@ TouchEvent::TouchEvent(EventType type, |
float radius_x, |
float radius_y, |
float angle, |
+ float tilt, |
float force) |
: LocatedEvent(type, location, location, time_stamp, flags), |
touch_id_(touch_id), |
radius_x_(radius_x), |
radius_y_(radius_y), |
rotation_angle_(angle), |
+ tilt_(tilt), |
force_(force) { |
latency()->AddLatencyNumber(INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0); |
} |