| Index: components/test_runner/event_sender.cc
|
| diff --git a/components/test_runner/event_sender.cc b/components/test_runner/event_sender.cc
|
| index 7d6df6ece65a4f24a3a9073364bdf2ae71ca21fe..97dc8d46094efe9c9d131d04e3c476fc2a6b6f68 100644
|
| --- a/components/test_runner/event_sender.cc
|
| +++ b/components/test_runner/event_sender.cc
|
| @@ -464,6 +464,7 @@ class EventSenderBindings : public gin::Wrappable<EventSenderBindings> {
|
| void TouchMoveCausingScrollIfUncanceled();
|
| void TouchCancel();
|
| void TouchEnd();
|
| + void NotifyStartOfTouchScroll();
|
| void LeapForward(int milliseconds);
|
| double LastEventTimestamp();
|
| void BeginDragWithFiles(const std::vector<std::string>& files);
|
| @@ -585,10 +586,10 @@ EventSenderBindings::GetObjectTemplateBuilder(v8::Isolate* isolate) {
|
| &EventSenderBindings::GestureScrollFirstPoint)
|
| .SetMethod("touchStart", &EventSenderBindings::TouchStart)
|
| .SetMethod("touchMove", &EventSenderBindings::TouchMove)
|
| - .SetMethod("touchMoveCausingScrollIfUncanceled",
|
| - &EventSenderBindings::TouchMoveCausingScrollIfUncanceled)
|
| .SetMethod("touchCancel", &EventSenderBindings::TouchCancel)
|
| .SetMethod("touchEnd", &EventSenderBindings::TouchEnd)
|
| + .SetMethod("notifyStartOfTouchScroll",
|
| + &EventSenderBindings::NotifyStartOfTouchScroll)
|
| .SetMethod("leapForward", &EventSenderBindings::LeapForward)
|
| .SetMethod("lastEventTimestamp", &EventSenderBindings::LastEventTimestamp)
|
| .SetMethod("beginDragWithFiles", &EventSenderBindings::BeginDragWithFiles)
|
| @@ -769,11 +770,6 @@ void EventSenderBindings::TouchMove() {
|
| sender_->TouchMove();
|
| }
|
|
|
| -void EventSenderBindings::TouchMoveCausingScrollIfUncanceled() {
|
| - if (sender_)
|
| - sender_->TouchMoveCausingScrollIfUncanceled();
|
| -}
|
| -
|
| void EventSenderBindings::TouchCancel() {
|
| if (sender_)
|
| sender_->TouchCancel();
|
| @@ -784,6 +780,11 @@ void EventSenderBindings::TouchEnd() {
|
| sender_->TouchEnd();
|
| }
|
|
|
| +void EventSenderBindings::NotifyStartOfTouchScroll() {
|
| + if (sender_)
|
| + sender_->NotifyStartOfTouchScroll();
|
| +}
|
| +
|
| void EventSenderBindings::LeapForward(int milliseconds) {
|
| if (sender_)
|
| sender_->LeapForward(milliseconds);
|
| @@ -1767,10 +1768,6 @@ void EventSender::TouchMove() {
|
| SendCurrentTouchEvent(WebInputEvent::TouchMove, false);
|
| }
|
|
|
| -void EventSender::TouchMoveCausingScrollIfUncanceled() {
|
| - SendCurrentTouchEvent(WebInputEvent::TouchMove, true);
|
| -}
|
| -
|
| void EventSender::TouchCancel() {
|
| SendCurrentTouchEvent(WebInputEvent::TouchCancel, false);
|
| }
|
| @@ -1779,6 +1776,12 @@ void EventSender::TouchEnd() {
|
| SendCurrentTouchEvent(WebInputEvent::TouchEnd, false);
|
| }
|
|
|
| +void EventSender::NotifyStartOfTouchScroll() {
|
| + WebTouchEvent event;
|
| + event.type = WebInputEvent::TouchScrollStarted;
|
| + HandleInputEventOnViewOrPopup(event);
|
| +}
|
| +
|
| void EventSender::LeapForward(int milliseconds) {
|
| if (is_drag_mode_ && pressed_button_ == WebMouseEvent::ButtonLeft &&
|
| !replaying_saved_events_) {
|
|
|