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

Unified Diff: ui/events/blink/input_handler_proxy_unittest.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
« no previous file with comments | « ui/events/blink/input_handler_proxy.cc ('k') | ui/events/blink/web_input_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/input_handler_proxy_unittest.cc
diff --git a/ui/events/blink/input_handler_proxy_unittest.cc b/ui/events/blink/input_handler_proxy_unittest.cc
index cc97babd1080298d257ea86b01ddc8fcb40214ab..0df72e075bad6cea00e0c74d6ff9dbfc7a420a75 100644
--- a/ui/events/blink/input_handler_proxy_unittest.cc
+++ b/ui/events/blink/input_handler_proxy_unittest.cc
@@ -1278,10 +1278,9 @@ TEST_P(InputHandlerProxyTest, GestureFlingPassiveListener) {
.WillOnce(testing::Return(scroll_result_did_scroll_));
WebMouseWheelEvent expected_wheel(WebInputEvent::MouseWheel, modifiers,
WebInputEvent::TimeStampForTesting);
- expected_wheel.x = fling_point.x;
- expected_wheel.y = fling_point.y;
- expected_wheel.globalX = fling_global_point.x;
- expected_wheel.globalY = fling_global_point.y;
+ expected_wheel.setPositionInWidget(fling_point.x, fling_point.y);
+ expected_wheel.setPositionInScreen(fling_global_point.x,
+ fling_global_point.y);
expected_wheel.deltaX = fling_delta.x / 10;
expected_wheel.hasPreciseScrollingDeltas = true;
« no previous file with comments | « ui/events/blink/input_handler_proxy.cc ('k') | ui/events/blink/web_input_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698