| Index: third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
|
| index a3d93f8b9213da36344ea7898fbb32fefe6c90a5..ce6eeec676260f1ea2c3ce5a4c522c3609d4a8f6 100644
|
| --- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
|
| @@ -1141,12 +1141,15 @@ TEST_P(VisualViewportTest, TestContextMenuShownInCorrectLocation) {
|
|
|
| // Do a sanity check with no scale applied.
|
| webViewImpl()->mainFrameImpl()->setClient(&mockWebFrameClient);
|
| - webViewImpl()->handleInputEvent(mouseDownEvent);
|
| - webViewImpl()->handleInputEvent(mouseUpEvent);
|
| + webViewImpl()->handleInputEvent(mouseDownEvent,
|
| + std::vector<const WebInputEvent*>());
|
| + webViewImpl()->handleInputEvent(mouseUpEvent,
|
| + std::vector<const WebInputEvent*>());
|
|
|
| Mock::VerifyAndClearExpectations(&mockWebFrameClient);
|
| mouseDownEvent.button = WebMouseEvent::Button::Left;
|
| - webViewImpl()->handleInputEvent(mouseDownEvent);
|
| + webViewImpl()->handleInputEvent(mouseDownEvent,
|
| + std::vector<const WebInputEvent*>());
|
|
|
| // Now pinch zoom into the page and move the visual viewport. The context menu
|
| // should still appear at the location of the event, relative to the WebView.
|
| @@ -1159,8 +1162,10 @@ TEST_P(VisualViewportTest, TestContextMenuShownInCorrectLocation) {
|
| mouseDownEvent.x, mouseDownEvent.y)));
|
|
|
| mouseDownEvent.button = WebMouseEvent::Button::Right;
|
| - webViewImpl()->handleInputEvent(mouseDownEvent);
|
| - webViewImpl()->handleInputEvent(mouseUpEvent);
|
| + webViewImpl()->handleInputEvent(mouseDownEvent,
|
| + std::vector<const WebInputEvent*>());
|
| + webViewImpl()->handleInputEvent(mouseUpEvent,
|
| + std::vector<const WebInputEvent*>());
|
|
|
| // Reset the old client so destruction can occur naturally.
|
| webViewImpl()->mainFrameImpl()->setClient(oldClient);
|
| @@ -1980,7 +1985,8 @@ TEST_P(VisualViewportTest, PinchZoomGestureScrollsVisualViewportOnly) {
|
| pinchUpdate.data.pinchUpdate.scale = 2;
|
| pinchUpdate.data.pinchUpdate.zoomDisabled = false;
|
|
|
| - webViewImpl()->handleInputEvent(pinchUpdate);
|
| + webViewImpl()->handleInputEvent(pinchUpdate,
|
| + std::vector<const WebInputEvent*>());
|
|
|
| VisualViewport& visualViewport =
|
| webViewImpl()->page()->frameHost().visualViewport();
|
|
|