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

Unified Diff: chrome/browser/android/vr_shell/android_ui_gesture_target.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
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698