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

Unified Diff: content/renderer/input/render_widget_input_handler.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/renderer/gpu/gpu_benchmarking_extension.cc ('k') | content/renderer/pepper/event_conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input/render_widget_input_handler.cc
diff --git a/content/renderer/input/render_widget_input_handler.cc b/content/renderer/input/render_widget_input_handler.cc
index 09a9a70fa10d3d053c6864bc32f051d6cfdf250c..35c1dfcb78513e25f3530a41de161d929b4019ce 100644
--- a/content/renderer/input/render_widget_input_handler.cc
+++ b/content/renderer/input/render_widget_input_handler.cc
@@ -260,8 +260,9 @@ void RenderWidgetInputHandler::HandleInputEvent(
if (WebInputEvent::isMouseEventType(input_event.type())) {
const WebMouseEvent& mouse_event =
static_cast<const WebMouseEvent&>(input_event);
- TRACE_EVENT2("renderer", "HandleMouseMove", "x", mouse_event.x, "y",
- mouse_event.y);
+ TRACE_EVENT2("renderer", "HandleMouseMove", "x",
+ mouse_event.positionInWidget().x, "y",
+ mouse_event.positionInWidget().y);
context_menu_source_type_ = ui::MENU_SOURCE_MOUSE;
prevent_default = delegate_->WillHandleMouseEvent(mouse_event);
}
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | content/renderer/pepper/event_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698