| Index: ui/events/event.cc
|
| diff --git a/ui/events/event.cc b/ui/events/event.cc
|
| index d0966da00847a13bcfe64258596a445fa57bd0e4..619f3395a9bde9189494e1ef3dc21a3e9805f631 100644
|
| --- a/ui/events/event.cc
|
| +++ b/ui/events/event.cc
|
| @@ -526,6 +526,8 @@ TouchEvent::TouchEvent(const base::NativeEvent& native_event)
|
| radius_y_(GetTouchRadiusY(native_event)),
|
| rotation_angle_(GetTouchAngle(native_event)),
|
| force_(GetTouchForce(native_event)),
|
| + tilt_(GetTouchTilt(native_event)),
|
| + tiltDirection_(GetTouchTiltDirection(native_event)),
|
| may_cause_scrolling_(false) {
|
| latency()->AddLatencyNumberWithTimestamp(
|
| INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT,
|
| @@ -552,6 +554,8 @@ TouchEvent::TouchEvent(EventType type,
|
| radius_y_(0.0f),
|
| rotation_angle_(0.0f),
|
| force_(0.0f),
|
| + tilt_(std::numeric_limits<float>::quiet_NaN()),
|
| + tiltDirection_(std::numeric_limits<float>::quiet_NaN()),
|
| may_cause_scrolling_(false) {
|
| latency()->AddLatencyNumber(INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0);
|
| }
|
| @@ -564,7 +568,9 @@ TouchEvent::TouchEvent(EventType type,
|
| float radius_x,
|
| float radius_y,
|
| float angle,
|
| - float force)
|
| + float force,
|
| + float tilt,
|
| + float tiltDirection)
|
| : LocatedEvent(type, location, location, time_stamp, flags),
|
| touch_id_(touch_id),
|
| unique_event_id_(get_next_touch_event_id()),
|
| @@ -572,6 +578,8 @@ TouchEvent::TouchEvent(EventType type,
|
| radius_y_(radius_y),
|
| rotation_angle_(angle),
|
| force_(force),
|
| + tilt_(tilt),
|
| + tiltDirection_(tiltDirection),
|
| may_cause_scrolling_(false) {
|
| latency()->AddLatencyNumber(INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0);
|
| fixRotationAngle();
|
|
|