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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.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/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..aa7b29c38737bca22017ec6040beab5453ed6aec 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -468,8 +468,9 @@ 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.setPositionInWidget(
+ resent_wheel_event.positionInWidget().x + offset_from_embedder.x(),
+ resent_wheel_event.positionInWidget().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
« no previous file with comments | « components/printing/test/print_web_view_helper_browsertest.cc ('k') | content/browser/devtools/protocol/color_picker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698