Index: chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc |
diff --git a/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc b/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc |
index 715627e552dd8d49536b957fb469e2faf142cad9..c3523a51d193efac3919de9da8e4996f2f0a98ed 100644 |
--- a/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc |
+++ b/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc |
@@ -573,8 +573,7 @@ IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, RequestOpenTab) { |
blink::WebInputEvent::NoModifiers, |
blink::WebInputEvent::TimeStampForTesting); |
mouse_event.button = blink::WebMouseEvent::Button::Middle; |
- mouse_event.x = 7; |
- mouse_event.y = 7; |
+ mouse_event.setPositionInWidget(7, 7); |
mouse_event.clickCount = 1; |
tab->GetRenderViewHost()->GetWidget()->ForwardMouseEvent(mouse_event); |
mouse_event.setType(blink::WebInputEvent::MouseUp); |
@@ -606,8 +605,7 @@ IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, TargetBlank) { |
blink::WebInputEvent::NoModifiers, |
blink::WebInputEvent::TimeStampForTesting); |
mouse_event.button = blink::WebMouseEvent::Button::Left; |
- mouse_event.x = 7; |
- mouse_event.y = 7; |
+ mouse_event.setPositionInWidget(7, 7); |
mouse_event.clickCount = 1; |
tab->GetRenderViewHost()->GetWidget()->ForwardMouseEvent(mouse_event); |
mouse_event.setType(blink::WebInputEvent::MouseUp); |
@@ -637,8 +635,7 @@ IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, TargetBlankIncognito) { |
blink::WebInputEvent::NoModifiers, |
blink::WebInputEvent::TimeStampForTesting); |
mouse_event.button = blink::WebMouseEvent::Button::Left; |
- mouse_event.x = 7; |
- mouse_event.y = 7; |
+ mouse_event.setPositionInWidget(7, 7); |
mouse_event.clickCount = 1; |
tab->GetRenderViewHost()->GetWidget()->ForwardMouseEvent(mouse_event); |
mouse_event.setType(blink::WebInputEvent::MouseUp); |