Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1310)

Unified Diff: content/browser/renderer_host/input/touch_emulator_unittest.cc

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Rebased, fixed a comment in web_input_event_builders_mac.mm Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/input/touch_emulator_unittest.cc
diff --git a/content/browser/renderer_host/input/touch_emulator_unittest.cc b/content/browser/renderer_host/input/touch_emulator_unittest.cc
index 6b729f18abe9b16ad8a53d7d08287b4b25c20b79..90df132f75f3856e3d7090794490a1b7d8a2af52 100644
--- a/content/browser/renderer_host/input/touch_emulator_unittest.cc
+++ b/content/browser/renderer_host/input/touch_emulator_unittest.cc
@@ -140,8 +140,8 @@ class TouchEmulatorTest : public testing::Test,
WebMouseEvent::Button::NoButton;
last_mouse_x_ = x;
last_mouse_y_ = y;
- event.x = event.globalX = x;
- event.y = event.globalY = y;
+ event.setPositionInWidget(x, y);
+ event.setPositionInScreen(x, y);
emulator()->HandleMouseEvent(event);
}

Powered by Google App Engine
This is Rietveld 408576698