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

Issue 2574933002: Call EnableNonClientDpiScaling (Closed)

Created:
4 years ago by robliao
Modified:
4 years ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, Bret, scottmg
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Call EnableNonClientDpiScaling Windows versions after 10.0.14393.0 have EnableNonClientDpiScaling, performing the same function as EnableChildWindowDpiMessage for us. EnableChildWindowDpiMessage was also removed in 10.0.14393.0 if not earlier. This change also allows delegates to handle the WM_NCCREATE message, required to properly call EnableNonClientDpiScaling. BUG=642956, 658787 Committed: https://crrev.com/b297db871b54cd58c32c96897a7a59af295ba796 Cr-Commit-Position: refs/heads/master@{#438674}

Patch Set 1 #

Total comments: 10

Patch Set 2 : CR Feedback #

Patch Set 3 : Update Window Variable Setup #

Patch Set 4 : Fix Bad Test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -5 lines) Patch
M ui/events/win/event_utils_win_unittest.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M ui/gfx/win/window_impl.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M ui/views/win/hwnd_message_handler.h View 1 3 chunks +9 lines, -0 lines 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 1 3 chunks +22 lines, -1 line 0 comments Download

Messages

Total messages: 39 (28 generated)
robliao
sky: Please review this change. Thanks!
4 years ago (2016-12-14 01:28:54 UTC) #9
sky
https://codereview.chromium.org/2574933002/diff/20001/ui/gfx/win/window_impl.cc File ui/gfx/win/window_impl.cc (right): https://codereview.chromium.org/2574933002/diff/20001/ui/gfx/win/window_impl.cc#newcode297 ui/gfx/win/window_impl.cc:297: WindowImpl* window = reinterpret_cast<WindowImpl*>(GetWindowUserData(hwnd)); This isn't necessary for the ...
4 years ago (2016-12-14 02:42:41 UTC) #10
robliao
https://codereview.chromium.org/2574933002/diff/20001/ui/gfx/win/window_impl.cc File ui/gfx/win/window_impl.cc (right): https://codereview.chromium.org/2574933002/diff/20001/ui/gfx/win/window_impl.cc#newcode297 ui/gfx/win/window_impl.cc:297: WindowImpl* window = reinterpret_cast<WindowImpl*>(GetWindowUserData(hwnd)); On 2016/12/14 02:42:41, sky wrote: ...
4 years ago (2016-12-14 18:50:19 UTC) #13
sky
https://codereview.chromium.org/2574933002/diff/20001/ui/gfx/win/window_impl.cc File ui/gfx/win/window_impl.cc (right): https://codereview.chromium.org/2574933002/diff/20001/ui/gfx/win/window_impl.cc#newcode297 ui/gfx/win/window_impl.cc:297: WindowImpl* window = reinterpret_cast<WindowImpl*>(GetWindowUserData(hwnd)); On 2016/12/14 18:50:19, robliao wrote: ...
4 years ago (2016-12-14 18:54:25 UTC) #16
robliao
https://codereview.chromium.org/2574933002/diff/20001/ui/gfx/win/window_impl.cc File ui/gfx/win/window_impl.cc (right): https://codereview.chromium.org/2574933002/diff/20001/ui/gfx/win/window_impl.cc#newcode297 ui/gfx/win/window_impl.cc:297: WindowImpl* window = reinterpret_cast<WindowImpl*>(GetWindowUserData(hwnd)); On 2016/12/14 18:54:24, sky wrote: ...
4 years ago (2016-12-14 19:03:18 UTC) #17
sky
LGTM
4 years ago (2016-12-14 19:05:00 UTC) #18
robliao
FYI, fixed a bad test that assumed that it processed all messages (resulting in a ...
4 years ago (2016-12-14 22:16:45 UTC) #28
sky
SLGTM
4 years ago (2016-12-14 22:22:21 UTC) #29
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/2574933002/100001
4 years ago (2016-12-14 23:26:53 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years ago (2016-12-14 23:36:48 UTC) #37
commit-bot: I haz the power
4 years ago (2016-12-14 23:39:33 UTC) #39
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b297db871b54cd58c32c96897a7a59af295ba796
Cr-Commit-Position: refs/heads/master@{#438674}

Powered by Google App Engine
This is Rietveld 408576698