Chromium Code Reviews

Unified Diff: chrome/browser/policy/policy_browsertest.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.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index b2986624e89c21007081e93984c0ad2dceb1e19e..8a68669ab22312db7ef3e381adc14450c96552fa 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -783,8 +783,7 @@ class PolicyTest : public InProcessBrowserTest {
blink::WebInputEvent::TimeStampForTesting);
click_event.button = blink::WebMouseEvent::Button::Left;
click_event.clickCount = 1;
- click_event.x = x;
- click_event.y = y;
+ click_event.setPositionInWidget(x, y);
contents->GetRenderViewHost()->GetWidget()->ForwardMouseEvent(click_event);
click_event.setType(blink::WebInputEvent::MouseUp);
contents->GetRenderViewHost()->GetWidget()->ForwardMouseEvent(click_event);

Powered by Google App Engine