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

Unified Diff: content/browser/renderer_host/input/synthetic_pointer_action_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/synthetic_pointer_action_unittest.cc
diff --git a/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc b/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc
index 23e85754f2f03eae06127e6820b6ab0c1be7bae9..098104e93e70f245d7b5700f8fbbcff12b02e69b 100644
--- a/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc
+++ b/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc
@@ -177,7 +177,8 @@ class MockSyntheticPointerMouseActionTarget
DCHECK(WebInputEvent::isMouseEventType(event.type()));
const WebMouseEvent& mouse_event = static_cast<const WebMouseEvent&>(event);
type_ = mouse_event.type();
- position_ = gfx::PointF(mouse_event.x, mouse_event.y);
+ position_ = gfx::PointF(mouse_event.positionInWidget().x,
dtapuska 2017/03/31 14:04:18 same
mustaq 2017/03/31 15:50:31 Done.
+ mouse_event.positionInWidget().y);
click_count_ = mouse_event.clickCount;
modifiers_ = mouse_event.modifiers();
button_ = mouse_event.button;

Powered by Google App Engine
This is Rietveld 408576698