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

Issue 2645273005: exo: Fix cursor size for multi-display ARC (Closed)

Created:
3 years, 11 months ago by Dominik Laskowski
Modified:
3 years, 11 months ago
Reviewers:
reveman, oshima
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

exo: Fix cursor size for multi-display ARC When a low-DPI monitor is connected to a high-DPI device, the cursor in ARC windows appears twice as large if: 1) The primary display is the external display, unless the internal display uses native resolution and the window is on the internal display. This includes docked mode. 2) The primary display is the internal display, the internal display uses native resolution, and the window is on the external display. BUG=684672 BUG=642894 TEST=samus: Cursor size is correct in the above cases. Review-Url: https://codereview.chromium.org/2645273005 Cr-Commit-Position: refs/heads/master@{#446192} Committed: https://chromium.googlesource.com/chromium/src/+/f79ede40658ecab4a6c72b6e51c456d68dab2ad0

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix tests #

Patch Set 3 : Address nits #

Total comments: 2

Patch Set 4 : Remove TODO #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -6 lines) Patch
M components/exo/pointer.cc View 1 2 3 1 chunk +24 lines, -6 lines 5 comments Download

Messages

Total messages: 29 (18 generated)
Dominik Laskowski
PTAL.
3 years, 11 months ago (2017-01-23 19:12:15 UTC) #4
reveman
lgtm % nits https://codereview.chromium.org/2645273005/diff/1/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2645273005/diff/1/components/exo/pointer.cc#newcode314 components/exo/pointer.cc:314: auto display = screen->GetDisplayNearestWindow(widget_->GetNativeWindow()); nit: Avoid ...
3 years, 11 months ago (2017-01-23 22:22:34 UTC) #11
Dominik Laskowski
PTAL at the second patch too. Also awaiting oshima's review. https://codereview.chromium.org/2645273005/diff/1/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2645273005/diff/1/components/exo/pointer.cc#newcode314 ...
3 years, 11 months ago (2017-01-23 23:50:53 UTC) #12
reveman
lgtm % nit https://codereview.chromium.org/2645273005/diff/40001/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2645273005/diff/40001/components/exo/pointer.cc#newcode319 components/exo/pointer.cc:319: // but it should be dynamic ...
3 years, 11 months ago (2017-01-24 00:16:01 UTC) #13
Dominik Laskowski
https://codereview.chromium.org/2645273005/diff/40001/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2645273005/diff/40001/components/exo/pointer.cc#newcode319 components/exo/pointer.cc:319: // but it should be dynamic to support devices ...
3 years, 11 months ago (2017-01-24 00:20:36 UTC) #14
oshima
https://codereview.chromium.org/2645273005/diff/60001/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2645273005/diff/60001/components/exo/pointer.cc#newcode327 components/exo/pointer.cc:327: if (!display.IsInternal() || Isn't this && ? https://codereview.chromium.org/2645273005/diff/60001/components/exo/pointer.cc#newcode328 components/exo/pointer.cc:328: ...
3 years, 11 months ago (2017-01-24 20:48:19 UTC) #20
Dominik Laskowski
https://codereview.chromium.org/2645273005/diff/60001/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2645273005/diff/60001/components/exo/pointer.cc#newcode327 components/exo/pointer.cc:327: if (!display.IsInternal() || On 2017/01/24 20:48:19, oshima wrote: > ...
3 years, 11 months ago (2017-01-24 22:14:34 UTC) #21
oshima
https://codereview.chromium.org/2645273005/diff/60001/components/exo/pointer.cc File components/exo/pointer.cc (right): https://codereview.chromium.org/2645273005/diff/60001/components/exo/pointer.cc#newcode327 components/exo/pointer.cc:327: if (!display.IsInternal() || On 2017/01/24 22:14:34, Dominik Laskowski wrote: ...
3 years, 11 months ago (2017-01-25 21:16:01 UTC) #22
oshima
thank you for clarification. I think there is a room to simplify this, but lgtm ...
3 years, 11 months ago (2017-01-26 00:42:36 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2645273005/60001
3 years, 11 months ago (2017-01-26 00:47:28 UTC) #26
commit-bot: I haz the power
3 years, 11 months ago (2017-01-26 01:25:18 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/f79ede40658ecab4a6c72b6e51c4...

Powered by Google App Engine
This is Rietveld 408576698