| 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 f645892932e0ddc16a5d5e1d1134d262d5315641..7c31fd66919ac443c7a8cead8bc3de3c90d44aff 100644
|
| --- a/third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| +++ b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| @@ -829,4 +829,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(
|
| + 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(
|
| + widget, static_cast<const WebTouchEvent&>(*event)));
|
| + }
|
| + return result;
|
| +}
|
| +
|
| } // namespace blink
|
|
|