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

Issue 11033038: Fix the issue of cursor's device scale factor when using monitors with differnt device scale factor. (Closed)

Created:
8 years, 2 months ago by mazda
Modified:
8 years, 2 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -18 lines) Patch
M ash/display/mouse_cursor_event_filter.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ash/display/mouse_cursor_event_filter_unittest.cc View 1 2 3 4 5 6 7 2 chunks +27 lines, -0 lines 0 comments Download
M ash/ui_controls_ash.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -13 lines 0 comments Download
M ash/wm/workspace/snap_sizer.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 1 2 3 4 5 6 7 3 chunks +58 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +102 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/shared/compound_event_filter.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M ui/aura/ui_controls_x11.cc View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
mazda
8 years, 2 months ago (2012-10-04 23:44:25 UTC) #1
oshima
can you add a test for this?
8 years, 2 months ago (2012-10-05 00:02:22 UTC) #2
mazda
Added 3 regression tests. Please take another look.
8 years, 2 months ago (2012-10-05 21:14:37 UTC) #3
oshima
lgtm with nits https://codereview.chromium.org/11033038/diff/4/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc File chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc (right): https://codereview.chromium.org/11033038/diff/4/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc#newcode1082 chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc:1082: }; can you add COMPILE_ASSERT to ...
8 years, 2 months ago (2012-10-05 21:20:59 UTC) #4
mazda
http://codereview.chromium.org/11033038/diff/4/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc File chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc (right): http://codereview.chromium.org/11033038/diff/4/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc#newcode1082 chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc:1082: }; On 2012/10/05 21:20:59, oshima wrote: > can you ...
8 years, 2 months ago (2012-10-05 21:34:43 UTC) #5
mazda
+sky Could you do an OWNERS review for chrome, ash and ui/aura?
8 years, 2 months ago (2012-10-05 21:35:52 UTC) #6
oshima
FYI: CusroDeviceScaleFactor is failing and looks legit.
8 years, 2 months ago (2012-10-10 04:41:17 UTC) #7
mazda
I fixed the tests failures. Please take another look. In order to fix the tests, ...
8 years, 2 months ago (2012-10-11 19:07:54 UTC) #8
mazda
Oshima-san, Could you review the parts added in Patch Set 7 (ui_controls_ash.cc, ui_controls_x11.cc, and snap_resizer.cc) ...
8 years, 2 months ago (2012-10-16 17:32:25 UTC) #9
oshima
lgtm http://codereview.chromium.org/11033038/diff/21006/ash/ui_controls_ash.cc File ash/ui_controls_ash.cc (right): http://codereview.chromium.org/11033038/diff/21006/ash/ui_controls_ash.cc#newcode39 ash/ui_controls_ash.cc:39: ui_controls::UIControlsAura* GetUIControlsAt(gfx::Point* point) { point_in_screen while you're at ...
8 years, 2 months ago (2012-10-17 18:47:17 UTC) #10
mazda
Scott, Could you do an OWNERS review? http://codereview.chromium.org/11033038/diff/21006/ash/ui_controls_ash.cc File ash/ui_controls_ash.cc (right): http://codereview.chromium.org/11033038/diff/21006/ash/ui_controls_ash.cc#newcode39 ash/ui_controls_ash.cc:39: ui_controls::UIControlsAura* GetUIControlsAt(gfx::Point* ...
8 years, 2 months ago (2012-10-17 19:13:30 UTC) #11
sky
http://codereview.chromium.org/11033038/diff/33001/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc File chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc (right): http://codereview.chromium.org/11033038/diff/33001/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc#newcode1171 chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc:1171: template <int N> Ugh. Why do we need the ...
8 years, 2 months ago (2012-10-17 21:29:42 UTC) #12
mazda
Please take another look. http://codereview.chromium.org/11033038/diff/33001/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc File chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc (right): http://codereview.chromium.org/11033038/diff/33001/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc#newcode1171 chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc:1171: template <int N> On 2012/10/17 ...
8 years, 2 months ago (2012-10-17 23:44:28 UTC) #13
sky
LGTM http://codereview.chromium.org/11033038/diff/37003/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc File chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc (right): http://codereview.chromium.org/11033038/diff/37003/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc#newcode1208 chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc:1208: // enough that it attaches to browser2. there ...
8 years, 2 months ago (2012-10-18 00:13:37 UTC) #14
mazda
http://codereview.chromium.org/11033038/diff/37003/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc File chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc (right): http://codereview.chromium.org/11033038/diff/37003/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc#newcode1208 chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc:1208: // enough that it attaches to browser2. On 2012/10/18 ...
8 years, 2 months ago (2012-10-18 00:26:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mazda@chromium.org/11033038/31016
8 years, 2 months ago (2012-10-18 00:26:49 UTC) #16
commit-bot: I haz the power
8 years, 2 months ago (2012-10-18 02:46:27 UTC) #17
Change committed as 162625

Powered by Google App Engine
This is Rietveld 408576698