Index: components/test_runner/event_sender.cc |
diff --git a/components/test_runner/event_sender.cc b/components/test_runner/event_sender.cc |
index 31867c91d971bdffbee91640d9c82dac8d67b957..fa5a14c7f0320c2e8697d5b434af60e086a36163 100644 |
--- a/components/test_runner/event_sender.cc |
+++ b/components/test_runner/event_sender.cc |
@@ -20,6 +20,7 @@ |
#include "gin/handle.h" |
#include "gin/object_template_builder.h" |
#include "gin/wrappable.h" |
+#include "third_party/WebKit/public/platform/WebPointerProperties.h" |
#include "third_party/WebKit/public/platform/WebString.h" |
#include "third_party/WebKit/public/platform/WebVector.h" |
#include "third_party/WebKit/public/web/WebContextMenuData.h" |
@@ -45,6 +46,7 @@ using blink::WebMouseEvent; |
using blink::WebMouseWheelEvent; |
using blink::WebPagePopup; |
using blink::WebPoint; |
+using blink::WebPointerProperties; |
using blink::WebString; |
using blink::WebTouchEvent; |
using blink::WebTouchPoint; |
@@ -1717,6 +1719,7 @@ void EventSender::UpdateTouchPoint(unsigned index, |
} |
WebTouchPoint* touch_point = &touch_points_[index]; |
+ touch_point->pointerType = WebPointerProperties::PointerType::Touch; |
touch_point->state = WebTouchPoint::StateMoved; |
touch_point->position = WebFloatPoint(x, y); |
touch_point->screenPosition = touch_point->position; |
@@ -1897,6 +1900,7 @@ void EventSender::BeginDragWithFiles(const std::vector<std::string>& files) { |
void EventSender::AddTouchPoint(float x, float y, gin::Arguments* args) { |
WebTouchPoint touch_point; |
+ touch_point.pointerType = WebPointerProperties::PointerType::Touch; |
touch_point.state = WebTouchPoint::StatePressed; |
touch_point.position = WebFloatPoint(x, y); |
touch_point.screenPosition = touch_point.position; |