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

Unified Diff: chrome/browser/policy/policy_browsertest.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: 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
This is Rietveld 408576698