move unlocked state movementX/Y calculation to blink
This change is under a blink flag MovementXYInBlink. With the flag on, MouseEvent and PointerEvent's movement_x/y is calculated in blink instead of in browser. The movement_x/y for pointerrawmove event is not set yet. And also this CL does not handle the calculation when pointer is locked. These is going to be done in the following changes. See the design doc: https://docs.google.com/document/d/1jL93PMbNHLhr6jYd4AWkjB8wgS73C5EDUa_2kYOjOn4/ With the flag, movement_x/y is in dip (same scale with screenX/Y), which is different the current behavior(physical pixel). The coordinate space is discuss in this doc: https://docs.google.com/document/d/1mYk4qMxBVsFweqFOku2FZvMajejp2Q7XWGIld9ivlXE/ It needs to be changed or clarified before we enable the flag. Bug: 802067 Change-Id: I5abb71181702c3b5265985f6ff8d2537116c5e18 Reviewed-on: https://chromium-review.googlesource.com/c/1297744Reviewed-by:Mustaq Ahmed <mustaq@chromium.org> Reviewed-by:
David Bokan <bokan@chromium.org> Commit-Queue: Ella Ge <eirage@chromium.org> Cr-Commit-Position: refs/heads/master@{#610148}
Showing
Please register or sign in to comment