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

Unified Diff: content/shell/test_runner/test_plugin.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/shell/test_runner/test_plugin.cc
diff --git a/content/shell/test_runner/test_plugin.cc b/content/shell/test_runner/test_plugin.cc
index 601f65f607e4ef32c6b296ef5f0a1fd5a9584249..cb78a00cd6548085cbd945fdd5228f1ba9f61366 100644
--- a/content/shell/test_runner/test_plugin.cc
+++ b/content/shell/test_runner/test_plugin.cc
@@ -88,7 +88,8 @@ void PrintEventDetails(WebTestDelegate* delegate,
event.type() == blink::WebInputEvent::MouseWheel) {
const blink::WebMouseEvent& mouse =
static_cast<const blink::WebMouseEvent&>(event);
- delegate->PrintMessage(base::StringPrintf("* %d, %d\n", mouse.x, mouse.y));
+ delegate->PrintMessage(base::StringPrintf(
+ "* %f, %f\n", mouse.positionInWidget().x, mouse.positionInWidget().y));
} else if (blink::WebInputEvent::isGestureEventType(event.type())) {
const blink::WebGestureEvent& gesture =
static_cast<const blink::WebGestureEvent&>(event);

Powered by Google App Engine
This is Rietveld 408576698