DescriptionFix the black patch which would appear at the top of app windows in Chrome desktop windows with HiDPI
The bug occurs because the non client insets which account for the window frame are retrieved via the
GetSystemMetrics API which returns values in pixels.
Changes as below:-
1. Renamed the GlassAppWindowFrameViewWin::GetGlassInsets function to GetGlassInsetsInDIP.
2. Replaced calls to the GetSystemMetrics API in the GetGlassInsetsInDIP function with the dpi helper
GetSystemMetricsInDIP.
3. Added code to convert the insets to pixels in the AppWindowDesktopWindowTreeHostWin::UpdateDWMFrame
function.
BUG=392603
TBR=benwells
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282682
Patch Set 1 #
Total comments: 2
Patch Set 2 : Code review comments #
Total comments: 2
Patch Set 3 : Code review comments #
Messages
Total messages: 8 (0 generated)
|