| Index: ui/touch_selection/touch_handle.cc
|
| diff --git a/ui/touch_selection/touch_handle.cc b/ui/touch_selection/touch_handle.cc
|
| index 0680e6db8afeca5bbe649bf07992391810777efe..84ab0b0a27b37755f65fd2d32c1853e184e30f15 100644
|
| --- a/ui/touch_selection/touch_handle.cc
|
| +++ b/ui/touch_selection/touch_handle.cc
|
| @@ -152,7 +152,7 @@ bool TouchHandle::WillHandleTouchEvent(const MotionEvent& event) {
|
| touch_down_position_ = touch_point;
|
| touch_to_focus_offset_ = position_ - touch_down_position_;
|
| touch_down_time_ = event.GetEventTime();
|
| - BeginDrag();
|
| + BeginDrag(event.GetEventTime());
|
| } break;
|
|
|
| case MotionEvent::ACTION_MOVE: {
|
| @@ -167,7 +167,8 @@ bool TouchHandle::WillHandleTouchEvent(const MotionEvent& event) {
|
| // Note that we signal drag update even if we're inside the tap region,
|
| // as there are cases where characters are narrower than the slop length.
|
| client_->OnHandleDragUpdate(*this,
|
| - touch_move_position + touch_to_focus_offset_);
|
| + touch_move_position + touch_to_focus_offset_,
|
| + event.GetEventTime());
|
| } break;
|
|
|
| case MotionEvent::ACTION_UP: {
|
| @@ -211,14 +212,14 @@ bool TouchHandle::Animate(base::TimeTicks frame_time) {
|
| return true;
|
| }
|
|
|
| -void TouchHandle::BeginDrag() {
|
| +void TouchHandle::BeginDrag(base::TimeTicks event_time) {
|
| DCHECK(enabled_);
|
| if (is_dragging_)
|
| return;
|
| EndFade();
|
| is_dragging_ = true;
|
| is_drag_within_tap_region_ = true;
|
| - client_->OnHandleDragBegin(*this);
|
| + client_->OnHandleDragBegin(*this, event_time);
|
| }
|
|
|
| void TouchHandle::EndDrag() {
|
|
|