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

Unified Diff: content/shell/test_runner/test_plugin.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/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..3ef197bfca2181ce1193d37afbf51cfd9395cf8b 100644
--- a/content/shell/test_runner/test_plugin.cc
+++ b/content/shell/test_runner/test_plugin.cc
@@ -88,7 +88,9 @@ 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("* %.2f, %.2f\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