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

Unified Diff: content/renderer/gpu/gpu_benchmarking_extension.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 | « content/public/test/render_view_test.cc ('k') | content/renderer/input/render_widget_input_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/gpu_benchmarking_extension.cc
diff --git a/content/renderer/gpu/gpu_benchmarking_extension.cc b/content/renderer/gpu/gpu_benchmarking_extension.cc
index ea33b0074b6dceb350dc6ef9208bd4c159839c9c..b4993edef69092c05126bca3671b0c5c331d8ea1 100644
--- a/content/renderer/gpu/gpu_benchmarking_extension.cc
+++ b/content/renderer/gpu/gpu_benchmarking_extension.cc
@@ -361,8 +361,9 @@ bool BeginSmoothScroll(v8::Isolate* isolate,
blink::WebMouseEvent mouseMove(
blink::WebInputEvent::MouseMove, blink::WebInputEvent::NoModifiers,
ui::EventTimeStampToSeconds(ui::EventTimeForNow()));
- mouseMove.x = (contentRect.x + contentRect.width / 2) * page_scale_factor;
- mouseMove.y = (contentRect.y + contentRect.height / 2) * page_scale_factor;
+ mouseMove.setPositionInWidget(
+ (contentRect.x + contentRect.width / 2) * page_scale_factor,
+ (contentRect.y + contentRect.height / 2) * page_scale_factor);
context.web_view()->handleInputEvent(
blink::WebCoalescedInputEvent(mouseMove));
context.web_view()->setCursorVisibilityState(true);
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/renderer/input/render_widget_input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698