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

Issue 2186163002: Create ScreenWin::GetSystemMetricsInDIP and Correctly Deprecate display::win::GetSystemMetricsInDIP (Closed)

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

Description

Create ScreenWin::GetSystemMetricsInDIP and Correctly Deprecate display::win::GetSystemMetricsInDIP This allows GetSystemMetricsInDIP to use the primary display for DIP calculations consistent with MSDN. BUG=426656 Committed: https://crrev.com/f7e4003f7b3c44cdf2e31c8356cdd57ff88caa1f Cr-Commit-Position: refs/heads/master@{#409021}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update comment. #

Total comments: 2

Patch Set 3 : Add a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -2 lines) Patch
M ui/display/win/dpi.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/display/win/screen_win.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M ui/display/win/screen_win.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M ui/display/win/screen_win_unittest.cc View 14 chunks +72 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
robliao
sky: Please review this CL. Thanks!
4 years, 4 months ago (2016-07-27 21:24:00 UTC) #4
sky
https://codereview.chromium.org/2186163002/diff/1/ui/display/win/screen_win.h File ui/display/win/screen_win.h (right): https://codereview.chromium.org/2186163002/diff/1/ui/display/win/screen_win.h#newcode95 ui/display/win/screen_win.h:95: // Returns the result of GetSystemMetrics for |metric| in ...
4 years, 4 months ago (2016-07-27 21:44:11 UTC) #5
robliao
https://codereview.chromium.org/2186163002/diff/1/ui/display/win/screen_win.h File ui/display/win/screen_win.h (right): https://codereview.chromium.org/2186163002/diff/1/ui/display/win/screen_win.h#newcode95 ui/display/win/screen_win.h:95: // Returns the result of GetSystemMetrics for |metric| in ...
4 years, 4 months ago (2016-07-27 22:04:01 UTC) #6
sky
https://codereview.chromium.org/2186163002/diff/20001/ui/display/win/screen_win.cc File ui/display/win/screen_win.cc (right): https://codereview.chromium.org/2186163002/diff/20001/ui/display/win/screen_win.cc#newcode326 ui/display/win/screen_win.cc:326: return static_cast<int>(std::round( I think you should ceil this, as ...
4 years, 4 months ago (2016-07-27 22:13:05 UTC) #7
robliao
https://codereview.chromium.org/2186163002/diff/20001/ui/display/win/screen_win.cc File ui/display/win/screen_win.cc (right): https://codereview.chromium.org/2186163002/diff/20001/ui/display/win/screen_win.cc#newcode326 ui/display/win/screen_win.cc:326: return static_cast<int>(std::round( On 2016/07/27 22:13:05, sky wrote: > I ...
4 years, 4 months ago (2016-07-29 18:13:40 UTC) #8
sky
I prefer that we stay consistent, which means ceiling, but you may be right that ...
4 years, 4 months ago (2016-08-01 15:39:41 UTC) #9
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/2186163002/40001
4 years, 4 months ago (2016-08-01 19:20:25 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-01 19:25:12 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-08-01 19:29:45 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f7e4003f7b3c44cdf2e31c8356cdd57ff88caa1f
Cr-Commit-Position: refs/heads/master@{#409021}

Powered by Google App Engine
This is Rietveld 408576698