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

Issue 2605773002: Fix Aura can't provide accurate cursor hotspot info. (Closed)

Created:
3 years, 12 months ago by braveyao
Modified:
3 years, 11 months ago
Reviewers:
sadrul, ananta
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Aura can't provide accurate cursor hotspot info. On Linux, device scale factor is not set. On Win, there is no API to offer hotspot of a cursor. This cl addresses the above two problems. BUG=676687 Review-Url: https://codereview.chromium.org/2605773002 Cr-Commit-Position: refs/heads/master@{#441790} Committed: https://chromium.googlesource.com/chromium/src/+/2f1d5f56541d4200134418bff40902734d4fe7ce

Patch Set 1 #

Total comments: 6

Patch Set 2 : address comments #

Patch Set 3 : restore logic in SearchTable() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
M ui/base/cursor/cursor_loader_x11.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/cursor/cursors_aura.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/icon_util.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/icon_util.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
braveyao
Hi sadrul@, this is the cl I mentioned in the email, which solved the cursor ...
3 years, 11 months ago (2017-01-03 17:11:51 UTC) #6
sadrul
+ananta@ for windows related change. https://codereview.chromium.org/2605773002/diff/1/ui/base/cursor/cursors_aura.cc File ui/base/cursor/cursors_aura.cc (right): https://codereview.chromium.org/2605773002/diff/1/ui/base/cursor/cursors_aura.cc#newcode180 ui/base/cursor/cursors_aura.cc:180: : gfx::Point(table[i].hot_2x.x, table[i].hot_2x.y); Why ...
3 years, 11 months ago (2017-01-03 17:18:09 UTC) #8
braveyao
comments addressed and replied. PTAL. https://codereview.chromium.org/2605773002/diff/1/ui/base/cursor/cursors_aura.cc File ui/base/cursor/cursors_aura.cc (right): https://codereview.chromium.org/2605773002/diff/1/ui/base/cursor/cursors_aura.cc#newcode180 ui/base/cursor/cursors_aura.cc:180: : gfx::Point(table[i].hot_2x.x, table[i].hot_2x.y); On ...
3 years, 11 months ago (2017-01-03 17:30:51 UTC) #11
sadrul
https://codereview.chromium.org/2605773002/diff/1/ui/base/cursor/cursors_aura.cc File ui/base/cursor/cursors_aura.cc (right): https://codereview.chromium.org/2605773002/diff/1/ui/base/cursor/cursors_aura.cc#newcode180 ui/base/cursor/cursors_aura.cc:180: : gfx::Point(table[i].hot_2x.x, table[i].hot_2x.y); On 2017/01/03 17:30:51, braveyao wrote: > ...
3 years, 11 months ago (2017-01-04 16:16:24 UTC) #14
braveyao
Hi sadrul@, thanks for the clarification. That modification is restored. PTAL. https://codereview.chromium.org/2605773002/diff/1/ui/base/cursor/cursors_aura.cc File ui/base/cursor/cursors_aura.cc (right): ...
3 years, 11 months ago (2017-01-04 17:37:37 UTC) #17
braveyao
Hi ananta@, please help to take a look at the Window related changes in ui/gfx/icon_util.h/cc.
3 years, 11 months ago (2017-01-05 18:36:33 UTC) #20
sadrul
ui/base/ lgtm Please wait for approval from ananta@ (or maybe sky@?) for the ui/gfx/ change
3 years, 11 months ago (2017-01-05 21:04:05 UTC) #21
ananta
lgtm
3 years, 11 months ago (2017-01-05 21:13:11 UTC) #22
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/2605773002/40001
3 years, 11 months ago (2017-01-05 21:47:45 UTC) #24
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 01:29:26 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/2f1d5f56541d4200134418bff409...

Powered by Google App Engine
This is Rietveld 408576698