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

Issue 2183103002: [Win] OBFV::GetIconSize() should return the value in dip unit (Closed)

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

Description

[Win] OBFV::GetIconSize() should return the value in dip unit OpaqueBrowserFrameView::GetIconSize() 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/9502bad0f8dd68836373a6dfc1eae65f85a6e98a Cr-Commit-Position: refs/heads/master@{#408017}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 3 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
Sungmann Cho
Please take a look. Thanks!
4 years, 4 months ago (2016-07-26 15:58:16 UTC) #5
Peter Kasting
LGTM; if possible, provide a TEST= line in your CL description for instructions on how ...
4 years, 4 months ago (2016-07-26 22:31:09 UTC) #6
Sungmann Cho
https://codereview.chromium.org/2183103002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (right): https://codereview.chromium.org/2183103002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc#newcode59 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc:59: const int kIconMinimumSize = 16; On 2016/07/26 22:31:08, Peter ...
4 years, 4 months ago (2016-07-26 23:05:25 UTC) #7
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/2183103002/20001
4 years, 4 months ago (2016-07-27 01:13:30 UTC) #11
Sungmann Cho
By the way, how can I be assigned the bug(https://bugs.chromium.org/p/chromium/issues/detail?id=631488)? Can committers only be assigned ...
4 years, 4 months ago (2016-07-27 01:29:37 UTC) #12
Peter Kasting
Bugs can only be assigned to project members, which is a larger group than committers. ...
4 years, 4 months ago (2016-07-27 01:53:20 UTC) #13
Sungmann Cho
On 2016/07/27 01:53:20, Peter Kasting wrote: > Bugs can only be assigned to project members, ...
4 years, 4 months ago (2016-07-27 02:13:08 UTC) #14
Peter Kasting
On 2016/07/27 02:13:08, Sungmann Cho wrote: > On 2016/07/27 01:53:20, Peter Kasting wrote: > > ...
4 years, 4 months ago (2016-07-27 02:16:47 UTC) #15
Sungmann Cho
On 2016/07/27 02:16:47, Peter Kasting wrote: > On 2016/07/27 02:13:08, Sungmann Cho wrote: > > ...
4 years, 4 months ago (2016-07-27 02:19:53 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-07-27 02:21:01 UTC) #18
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 02:22:46 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9502bad0f8dd68836373a6dfc1eae65f85a6e98a
Cr-Commit-Position: refs/heads/master@{#408017}

Powered by Google App Engine
This is Rietveld 408576698