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

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

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Fixed compile failures. 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_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..ed0cb519cb85e0f0f8b7a3539419fd5575759666 100644
--- a/content/browser/renderer_host/input/synthetic_mouse_driver.cc
+++ b/content/browser/renderer_host/input/synthetic_mouse_driver.cc
@@ -52,8 +52,8 @@ 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_.position.x,
+ mouse_event_.position.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