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

Unified Diff: content/browser/renderer_host/input/synthetic_mouse_driver.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/synthetic_mouse_driver.cc
diff --git a/content/browser/renderer_host/input/synthetic_mouse_driver.cc b/content/browser/renderer_host/input/synthetic_mouse_driver.cc
index ed388a72a8a6d0a14dc9f7ce85497232f5437542..f5b0d51d4b024d81106eb05fa264848b135059eb 100644
--- a/content/browser/renderer_host/input/synthetic_mouse_driver.cc
+++ b/content/browser/renderer_host/input/synthetic_mouse_driver.cc
@@ -52,8 +52,9 @@ void SyntheticMouseDriver::Release(
SyntheticPointerActionParams::Button button) {
DCHECK_EQ(index, 0);
mouse_event_ = SyntheticWebMouseEventBuilder::Build(
- blink::WebInputEvent::MouseUp, mouse_event_.x, mouse_event_.y,
- last_modifiers_, mouse_event_.pointerType);
+ blink::WebInputEvent::MouseUp, mouse_event_.positionInWidget().x,
+ mouse_event_.positionInWidget().y, last_modifiers_,
+ mouse_event_.pointerType);
mouse_event_.clickCount = 1;
mouse_event_.button =
SyntheticPointerActionParams::GetWebMouseEventButton(button);

Powered by Google App Engine
This is Rietveld 408576698