Chromium Code Reviews| Index: third_party/WebKit/Source/web/tests/WebFrameTest.cpp |
| diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp |
| index 575676031f3e38dae4b38e7c5a93e4d394b832db..b7baf4fef4a750ad659f64e5f1dddd355a21ae0b 100644 |
| --- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp |
| +++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp |
| @@ -1600,7 +1600,7 @@ TEST_F(WebFrameTest, SetForceZeroLayoutHeightWorksWithRelayoutsWhenHeightChanged |
| ASSERT_NE(nullptr, element); |
| EXPECT_EQ(String("oldValue"), element->innerText()); |
| - PlatformGestureEvent gestureEvent(PlatformEvent::Type::GestureTap, hitPoint, hitPoint, IntSize(0, 0), 0, PlatformEvent::NoModifiers); |
| + PlatformGestureEvent gestureEvent(PlatformEvent::Type::GestureTap, hitPoint, hitPoint, IntSize(0, 0), 0, PlatformEvent::NoModifiers, PlatformGestureSourceTouchpad); |
|
Rick Byers
2015/10/19 18:20:29
Tap should only ever be touchscreen
wjmaclean
2015/10/19 18:58:49
Done.
|
| webViewHelper.webViewImpl()->mainFrameImpl()->frame()->eventHandler().handleGestureEvent(gestureEvent); |
| // when pressed, the button changes its own text to "updatedValue" |
| EXPECT_EQ(String("updatedValue"), element->innerText()); |
| @@ -4758,6 +4758,7 @@ static WebGestureEvent fatTap(int x, int y) |
| { |
| WebGestureEvent event; |
| event.type = WebInputEvent::GestureTap; |
| + event.sourceDevice = WebGestureDeviceTouchpad; |
|
Rick Byers
2015/10/19 18:20:29
ditto
wjmaclean
2015/10/19 18:58:49
Done.
|
| event.x = x; |
| event.y = y; |
| event.data.tap.width = 50; |
| @@ -7991,6 +7992,7 @@ protected: |
| { |
| WebGestureEvent event; |
| event.type = type; |
| + event.sourceDevice = WebGestureDeviceTouchpad; |
| event.x = 100; |
| event.y = 100; |
| if (type == WebInputEvent::GestureScrollUpdate) { |