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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.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/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index db861cc9e76b71a9f21ac8af81c5b0a86b0c9dff..9271b5c71ac39938d2df2a53c70a23a0e2dc67a0 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1027,8 +1027,9 @@ void RenderWidgetHostImpl::ForwardMouseEvent(const WebMouseEvent& mouse_event) {
void RenderWidgetHostImpl::ForwardMouseEventWithLatencyInfo(
const blink::WebMouseEvent& mouse_event,
const ui::LatencyInfo& ui_latency) {
- TRACE_EVENT2("input", "RenderWidgetHostImpl::ForwardMouseEvent",
- "x", mouse_event.x, "y", mouse_event.y);
+ TRACE_EVENT2("input", "RenderWidgetHostImpl::ForwardMouseEvent", "x",
+ mouse_event.positionInWidget().x, "y",
+ mouse_event.positionInWidget().y);
for (size_t i = 0; i < mouse_event_callbacks_.size(); ++i) {
if (mouse_event_callbacks_[i].Run(mouse_event))

Powered by Google App Engine
This is Rietveld 408576698