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

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

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Truncated to int on input, git cl format Created 3 years, 9 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 41a7ea5d7c72c5c6c63de2ddcf16977845247776..da1a9b2df784964cb251f073113c6666c62f391b 100644
--- a/content/browser/renderer_host/input/touch_emulator_unittest.cc
+++ b/content/browser/renderer_host/input/touch_emulator_unittest.cc
@@ -138,8 +138,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