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

Unified Diff: chrome/browser/android/vr_shell/android_ui_gesture_target.cc

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Truncated to int on input, git cl format 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: chrome/browser/android/vr_shell/android_ui_gesture_target.cc
diff --git a/chrome/browser/android/vr_shell/android_ui_gesture_target.cc b/chrome/browser/android/vr_shell/android_ui_gesture_target.cc
index 9bccc027dc0db993bf2b76d03f3460e4c7856fb8..1929d29c6cbf646dc6f66c063d559f83de30c22d 100644
--- a/chrome/browser/android/vr_shell/android_ui_gesture_target.cc
+++ b/chrome/browser/android/vr_shell/android_ui_gesture_target.cc
@@ -60,15 +60,15 @@ void AndroidUiGestureTarget::DispatchWebInputEvent(
// Flings are automatically generated for android UI. Ignore this input.
break;
case blink::WebMouseEvent::MouseEnter:
- SetPointer(env, mouse->x, mouse->y);
+ SetPointer(env, mouse->positionInWidget().x, mouse->positionInWidget().y);
Inject(env, Action::HoverEnter, gesture->timeStampSeconds());
break;
case blink::WebMouseEvent::MouseMove:
- SetPointer(env, mouse->x, mouse->y);
+ SetPointer(env, mouse->positionInWidget().x, mouse->positionInWidget().y);
Inject(env, Action::HoverMove, gesture->timeStampSeconds());
break;
case blink::WebMouseEvent::MouseLeave:
- SetPointer(env, mouse->x, mouse->y);
+ SetPointer(env, mouse->positionInWidget().x, mouse->positionInWidget().y);
Inject(env, Action::HoverExit, gesture->timeStampSeconds());
break;
default:

Powered by Google App Engine
This is Rietveld 408576698