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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Fixed compile failures. Created 3 years, 9 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/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index 626114c3ed192028263ab9b2dc23139eb173383a..af1314ce24b9ef6f4d9157a58771b93100b5b69e 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -468,8 +468,8 @@ void BrowserPluginGuest::ResendEventToEmbedder(
} else if (event.type() == blink::WebInputEvent::MouseWheel) {
blink::WebMouseWheelEvent resent_wheel_event;
memcpy(&resent_wheel_event, &event, sizeof(blink::WebMouseWheelEvent));
- resent_wheel_event.x += offset_from_embedder.x();
- resent_wheel_event.y += offset_from_embedder.y();
+ resent_wheel_event.position.x += offset_from_embedder.x();
+ resent_wheel_event.position.y += offset_from_embedder.y();
resent_wheel_event.resendingPluginId = browser_plugin_instance_id_;
// TODO(wjmaclean): Initialize latency info correctly for OOPIFs.
// https://crbug.com/613628

Powered by Google App Engine
This is Rietveld 408576698