DescriptionFix the issue of cursor's device scale factor when using monitors with differnt device scale factor.
The cursor's device scale factor is correctly set when cursor warps to another
monitor. The original code was added for handling the case where moves to
another monitor without warping when testing on desktop. But this caused adverse
effects in some cases, so just deleting the code would be fine.
This CL also adds regression tests for the following cases
- cursor warps without dragging anything
- cursor warps while dragging a window
- cursor warps while dragging a tab
TODO: Add a test case where cursor warps when a chromium menu is open (http://crbug.com/154377).
This CL depends on http://codereview.chromium.org/11066045/.
BUG=154183
TEST=MouseCursorEventFilterTest.CursorDeviceScaleFactor, WorkspaceWindowResizerTest.CursorDeviceScaleFactor, DifferentDeviceScaleFactorDisplayTabDragControllerTest.CursorDeviceScaleFactor
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162625
Patch Set 1 #Patch Set 2 : add regression tests #Patch Set 3 : #
Total comments: 4
Patch Set 4 : #Patch Set 5 : address comments #Patch Set 6 : rebase #Patch Set 7 : fix tests #
Total comments: 2
Patch Set 8 : address comment and rebase #
Total comments: 2
Patch Set 9 : Rewrote CursorDeviceScaleFactorStep without using template #
Total comments: 2
Patch Set 10 : fix a comment #
Messages
Total messages: 17 (0 generated)
|