Index: chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc |
diff --git a/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc b/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc |
index edd7af04bde0c503d23740a73e9946edd2b597f9..4282ecb1b12d1974bbc6070cb4311f5b7c08ea2b 100644 |
--- a/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc |
+++ b/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc |
@@ -301,12 +301,10 @@ class WebViewInteractiveTestBase : public extensions::PlatformAppBrowserTest { |
blink::WebInputEvent::NoModifiers, |
blink::WebInputEvent::TimeStampForTesting); |
mouse_event.button = button; |
- mouse_event.x = x; |
- mouse_event.y = y; |
+ mouse_event.setPositionInWidget(x, y); |
// Needed for the WebViewTest.ContextMenuPositionAfterCSSTransforms |
gfx::Rect rect = rwh->GetView()->GetViewBounds(); |
- mouse_event.globalX = x + rect.x(); |
- mouse_event.globalY = y + rect.y(); |
+ mouse_event.setPositionInScreen(x + rect.x(), y + rect.y()); |
rwh->ForwardMouseEvent(mouse_event); |
mouse_event.setType(blink::WebInputEvent::MouseUp); |
rwh->ForwardMouseEvent(mouse_event); |