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

Issue 2190593002: [Win] CustomFrameView::IconSize() should return the value in dip unit (Closed)

Created:
4 years, 4 months ago by Sungmann Cho
Modified:
4 years, 4 months ago
Reviewers:
robliao, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Win] CustomFrameView::IconSize() should return the value in dip unit CustomFrameView::IconSize() returns the size of the window icon. On Windows, the value is obtained from GetSystemMetrics(SM_CYSMICON) call, but the problem is that the value returned is in pixel, not in dip. This leads to a wrong sized window icon if an user is using a higher scale ratio. This CL replaces GetSystemMetrics() with display::win::GetSystemMetricsInDIP() to fix this. BUG=631488 TEST=See the bug page for the reproduce steps Committed: https://crrev.com/bfff171967e262866054da6ce1e07961fde797e8 Cr-Commit-Position: refs/heads/master@{#408290}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M ui/views/window/custom_frame_view.cc View 2 chunks +5 lines, -1 line 1 comment Download

Messages

Total messages: 19 (6 generated)
Sungmann Cho
Please take a look. Thanks!
4 years, 4 months ago (2016-07-27 12:50:56 UTC) #3
sky
I tend to think we should get rid of the functions that don't take an ...
4 years, 4 months ago (2016-07-27 15:30:15 UTC) #5
robliao
On 2016/07/27 15:30:15, sky wrote: > I tend to think we should get rid of ...
4 years, 4 months ago (2016-07-27 17:03:04 UTC) #6
sky
Rob, WDYT of adding a comment to said functions that they are deprecated? That way ...
4 years, 4 months ago (2016-07-27 18:18:32 UTC) #7
robliao
Works for me. I'll send a CL out once the sheriff stuff quiets down. On ...
4 years, 4 months ago (2016-07-27 18:19:37 UTC) #8
Sungmann Cho
I'm trying to use display::win::ScreenWin::GetSystemMetricsForHwnd(), but this method seems to return a metric in pixel, ...
4 years, 4 months ago (2016-07-27 20:14:32 UTC) #9
robliao
On 2016/07/27 20:14:32, Sungmann Cho wrote: > I'm trying to use display::win::ScreenWin::GetSystemMetricsForHwnd(), but this > ...
4 years, 4 months ago (2016-07-27 20:59:24 UTC) #10
robliao
lgtm
4 years, 4 months ago (2016-07-27 21:33:01 UTC) #11
sky
LGTM
4 years, 4 months ago (2016-07-27 23:30:50 UTC) #12
Sungmann Cho
On 2016/07/27 20:59:24, robliao wrote: > On 2016/07/27 20:14:32, Sungmann Cho wrote: > > I'm ...
4 years, 4 months ago (2016-07-27 23:36:24 UTC) #13
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/2190593002/1
4 years, 4 months ago (2016-07-27 23:37:06 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-28 00:21:24 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 00:23:30 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/bfff171967e262866054da6ce1e07961fde797e8
Cr-Commit-Position: refs/heads/master@{#408290}

Powered by Google App Engine
This is Rietveld 408576698