Index: third_party/WebKit/Source/web/WebInputEventConversion.cpp |
diff --git a/third_party/WebKit/Source/web/WebInputEventConversion.cpp b/third_party/WebKit/Source/web/WebInputEventConversion.cpp |
index c41f9e64ca2ea778fd52382cb9649c672c2c535f..f8d17a394761751b0424e6ff72d2ad8aaeeec5db 100644 |
--- a/third_party/WebKit/Source/web/WebInputEventConversion.cpp |
+++ b/third_party/WebKit/Source/web/WebInputEventConversion.cpp |
@@ -828,4 +828,26 @@ WebGestureEventBuilder::WebGestureEventBuilder(const LayoutItem layoutItem, |
} |
} |
+Vector<PlatformMouseEvent> createPlatformMouseEventVector( |
+ Widget* widget, |
+ const std::vector<const WebInputEvent*>& coalescedEvents) { |
+ Vector<PlatformMouseEvent> result; |
+ for (const auto& event : coalescedEvents) { |
+ result.append(PlatformMouseEventBuilder( |
dtapuska
2016/11/21 15:51:56
Should we check the type on the WebInputEvent befo
Navid Zolghadr
2016/11/21 19:35:11
I don't think there is anything this function can
|
+ widget, static_cast<const WebMouseEvent&>(*event))); |
+ } |
+ return result; |
+} |
+ |
+Vector<PlatformTouchEvent> createPlatformTouchEventVector( |
+ Widget* widget, |
+ const std::vector<const WebInputEvent*>& coalescedEvents) { |
+ Vector<PlatformTouchEvent> result; |
+ for (const auto& event : coalescedEvents) { |
+ result.append(PlatformTouchEventBuilder( |
dtapuska
2016/11/21 15:51:56
ditto
|
+ widget, static_cast<const WebTouchEvent&>(*event))); |
+ } |
+ return result; |
+} |
+ |
} // namespace blink |