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

Unified Diff: content/browser/renderer_host/input/synthetic_gesture_target_android.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/input/synthetic_gesture_target_android.cc
diff --git a/content/browser/renderer_host/input/synthetic_gesture_target_android.cc b/content/browser/renderer_host/input/synthetic_gesture_target_android.cc
index 0562016edcb431602e8d87a51d2d5cc4a59f1381..9b5e415255704dc843a04533162e08f4f83e7123 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_target_android.cc
+++ b/content/browser/renderer_host/input/synthetic_gesture_target_android.cc
@@ -84,7 +84,8 @@ void SyntheticGestureTargetAndroid::DispatchWebTouchEventToPlatform(
void SyntheticGestureTargetAndroid::DispatchWebMouseWheelEventToPlatform(
const blink::WebMouseWheelEvent& web_wheel, const ui::LatencyInfo&) {
JNIEnv* env = base::android::AttachCurrentThread();
- TouchSetScrollDeltas(env, web_wheel.x, web_wheel.y, web_wheel.deltaX,
+ TouchSetScrollDeltas(env, web_wheel.positionInWidget().x,
+ web_wheel.positionInWidget().y, web_wheel.deltaX,
web_wheel.deltaY);
Java_MotionEventSynthesizer_inject(
env, touch_event_synthesizer_,

Powered by Google App Engine
This is Rietveld 408576698