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

Issue 2098993002: Prepare ScreenWin To Use Per-Monitor DPI (Closed)

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

Description

Prepare ScreenWin To Use Per-Monitor DPI This allows ScreenWin to switch between the global DPI and the per monitor DPI for platforms where per monitor DPI is availble. BUG=426656 Committed: https://crrev.com/b479d9f705c35151dc32dde0363a50ef7783f23d Cr-Commit-Position: refs/heads/master@{#402325}

Patch Set 1 #

Total comments: 6

Patch Set 2 : CR Feedback scottmg@ #

Total comments: 2

Patch Set 3 : Update Variable Name #

Total comments: 2

Patch Set 4 : Update Declaration #

Patch Set 5 : Clang Build Fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -4 lines) Patch
M base/win/win_util.h View 1 chunk +3 lines, -0 lines 0 comments Download
M base/win/win_util.cc View 1 2 3 2 chunks +26 lines, -0 lines 0 comments Download
M ui/display/win/dpi.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/display/win/dpi.cc View 2 chunks +5 lines, -1 line 0 comments Download
M ui/display/win/screen_win.cc View 1 2 3 4 3 chunks +28 lines, -3 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2098993002/20001
4 years, 6 months ago (2016-06-25 00:55:42 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-25 02:43:14 UTC) #5
robliao
scottmg: Please review the WIndows calls in this CL. Thanks!
4 years, 5 months ago (2016-06-27 17:01:29 UTC) #7
scottmg
https://codereview.chromium.org/2098993002/diff/20001/base/win/win_util.cc File base/win/win_util.cc (right): https://codereview.chromium.org/2098993002/diff/20001/base/win/win_util.cc#newcode615 base/win/win_util.cc:615: ::GetProcAddress(shcore_dll, "GetProcessDpiAwareness")); How about auto get_process_dpi_awareness = reinterpret_cast<decltype(::GetProcessDpiAwareness)*>(::GetProcAddress(...)); , ...
4 years, 5 months ago (2016-06-27 17:55:04 UTC) #8
robliao
Feedback applied. Thanks! https://codereview.chromium.org/2098993002/diff/20001/base/win/win_util.cc File base/win/win_util.cc (right): https://codereview.chromium.org/2098993002/diff/20001/base/win/win_util.cc#newcode615 base/win/win_util.cc:615: ::GetProcAddress(shcore_dll, "GetProcessDpiAwareness")); On 2016/06/27 17:55:04, scottmg ...
4 years, 5 months ago (2016-06-27 18:39:30 UTC) #9
scottmg
lgtm https://codereview.chromium.org/2098993002/diff/40001/base/win/win_util.cc File base/win/win_util.cc (right): https://codereview.chromium.org/2098993002/diff/40001/base/win/win_util.cc#newcode611 base/win/win_util.cc:611: auto process_dpi_awareness_func = nit; process_dpi_awareness_func -> get_process_dpi_awareness[_func]
4 years, 5 months ago (2016-06-27 18:41:52 UTC) #10
robliao
oshima: Please review ui/display/*. Thanks! https://codereview.chromium.org/2098993002/diff/40001/base/win/win_util.cc File base/win/win_util.cc (right): https://codereview.chromium.org/2098993002/diff/40001/base/win/win_util.cc#newcode611 base/win/win_util.cc:611: auto process_dpi_awareness_func = On ...
4 years, 5 months ago (2016-06-27 18:54:42 UTC) #13
oshima
lgtm https://codereview.chromium.org/2098993002/diff/80001/base/win/win_util.cc File base/win/win_util.cc (right): https://codereview.chromium.org/2098993002/diff/80001/base/win/win_util.cc#newcode606 base/win/win_util.cc:606: } per_monitor_dpi_aware = PerMonitorDpiAware::UNKNOWN; nit: new line would ...
4 years, 5 months ago (2016-06-27 18:58:52 UTC) #14
robliao
https://codereview.chromium.org/2098993002/diff/80001/base/win/win_util.cc File base/win/win_util.cc (right): https://codereview.chromium.org/2098993002/diff/80001/base/win/win_util.cc#newcode606 base/win/win_util.cc:606: } per_monitor_dpi_aware = PerMonitorDpiAware::UNKNOWN; On 2016/06/27 18:58:52, oshima wrote: ...
4 years, 5 months ago (2016-06-27 19:07:32 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2098993002/100001
4 years, 5 months ago (2016-06-27 19:08:24 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/44119)
4 years, 5 months ago (2016-06-27 21:05:01 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2098993002/120001
4 years, 5 months ago (2016-06-27 21:18:51 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-27 22:51:28 UTC) #24
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/2098993002/120001
4 years, 5 months ago (2016-06-27 22:53:26 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 5 months ago (2016-06-27 23:06:10 UTC) #29
commit-bot: I haz the power
4 years, 5 months ago (2016-06-27 23:09:39 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b479d9f705c35151dc32dde0363a50ef7783f23d
Cr-Commit-Position: refs/heads/master@{#402325}

Powered by Google App Engine
This is Rietveld 408576698