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

Issue 226293005: Use platform's device scale factor for cursor (Closed)

Created:
6 years, 8 months ago by oshima
Modified:
6 years, 8 months ago
Reviewers:
tdanderson, sky
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, mazda+watch_chromium.org, kalyank, ben+ash_chromium.org
Visibility:
Public.

Description

Use platform's device scale factor for cursor instead of gfx::Display because gfx::Display's DSF may differ from platform's one when UI scaling is used. BUG=361672 TEST=covered by unit test Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265592 R=sky@chromium.org, tdanderson@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265747

Patch Set 1 : #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : new tests #

Total comments: 2

Patch Set 4 : fix style #

Patch Set 5 : initialize rotation_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -107 lines) Patch
M ash/display/display_controller_unittest.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M ash/display/display_manager.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/display/mouse_cursor_event_filter_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ash/display/screen_ash.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ash/test/cursor_manager_test_api.h View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M ash/test/cursor_manager_test_api.cc View 1 2 1 chunk +9 lines, -2 lines 0 comments Download
M ash/wm/ash_native_cursor_manager.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ash/wm/ash_native_cursor_manager_interactive_uitest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/ash_native_cursor_manager_unittest.cc View 1 2 4 chunks +50 lines, -23 lines 0 comments Download
M ash/wm/drag_window_resizer_unittest.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M ash/wm/image_cursors.h View 4 chunks +4 lines, -11 lines 0 comments Download
M ash/wm/image_cursors.cc View 1 2 3 chunks +28 lines, -26 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/base/cursor/cursor_loader.h View 1 2 3 4 2 chunks +8 lines, -10 lines 0 comments Download
M ui/base/cursor/cursor_loader_ozone.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/cursor/cursor_loader_x11.cc View 1 2 3 3 chunks +4 lines, -7 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_cursor_manager.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
tdanderson
Is this up for review or still a WIP?
6 years, 8 months ago (2014-04-12 01:59:03 UTC) #1
oshima
On 2014/04/12 01:59:03, tdanderson wrote: > Is this up for review or still a WIP? ...
6 years, 8 months ago (2014-04-12 02:25:37 UTC) #2
oshima
This is ready. PTAL. https://codereview.chromium.org/226293005/diff/190001/ash/display/screen_ash.cc File ash/display/screen_ash.cc (left): https://codereview.chromium.org/226293005/diff/190001/ash/display/screen_ash.cc#oldcode237 ash/display/screen_ash.cc:237: return gfx::Display(1); This was wrong. ...
6 years, 8 months ago (2014-04-21 19:39:46 UTC) #3
tdanderson
LGTM with a few questions inline: https://codereview.chromium.org/226293005/diff/190001/ash/test/cursor_manager_test_api.h File ash/test/cursor_manager_test_api.h (right): https://codereview.chromium.org/226293005/diff/190001/ash/test/cursor_manager_test_api.h#newcode28 ash/test/cursor_manager_test_api.h:28: gfx::Display::Rotation GetCurrentCursorRotation() const; ...
6 years, 8 months ago (2014-04-22 17:28:09 UTC) #4
oshima
sky -> chrome/browser, ui/base changes https://codereview.chromium.org/226293005/diff/190001/ash/test/cursor_manager_test_api.h File ash/test/cursor_manager_test_api.h (right): https://codereview.chromium.org/226293005/diff/190001/ash/test/cursor_manager_test_api.h#newcode28 ash/test/cursor_manager_test_api.h:28: gfx::Display::Rotation GetCurrentCursorRotation() const; On ...
6 years, 8 months ago (2014-04-23 01:47:11 UTC) #5
sky
LGTM https://codereview.chromium.org/226293005/diff/210001/ui/base/cursor/cursor_loader_x11.cc File ui/base/cursor/cursor_loader_x11.cc (right): https://codereview.chromium.org/226293005/diff/210001/ui/base/cursor/cursor_loader_x11.cc#newcode235 ui/base/cursor/cursor_loader_x11.cc:235: rotation() == gfx::Display::ROTATE_0) { nit: fit on one ...
6 years, 8 months ago (2014-04-23 02:53:05 UTC) #6
oshima
https://codereview.chromium.org/226293005/diff/210001/ui/base/cursor/cursor_loader_x11.cc File ui/base/cursor/cursor_loader_x11.cc (right): https://codereview.chromium.org/226293005/diff/210001/ui/base/cursor/cursor_loader_x11.cc#newcode235 ui/base/cursor/cursor_loader_x11.cc:235: rotation() == gfx::Display::ROTATE_0) { On 2014/04/23 02:53:05, sky wrote: ...
6 years, 8 months ago (2014-04-23 05:57:46 UTC) #7
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 8 months ago (2014-04-23 05:57:50 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/226293005/230001
6 years, 8 months ago (2014-04-23 05:58:14 UTC) #9
commit-bot: I haz the power
Change committed as 265592
6 years, 8 months ago (2014-04-23 09:03:33 UTC) #10
pfeldman
A revert of this CL has been created in https://codereview.chromium.org/249303002/ by pfeldman@chromium.org. The reason for ...
6 years, 8 months ago (2014-04-23 13:21:01 UTC) #11
oshima
On 2014/04/23 13:21:01, pfeldman wrote: > A revert of this CL has been created in ...
6 years, 8 months ago (2014-04-23 17:08:58 UTC) #12
oshima
On 2014/04/23 17:08:58, oshima wrote: > On 2014/04/23 13:21:01, pfeldman wrote: > > A revert ...
6 years, 8 months ago (2014-04-23 21:59:10 UTC) #13
oshima
6 years, 8 months ago (2014-04-23 22:00:29 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 manually as r265747 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698