Fix the black patch which would appear at the top of app windows in Chrome...
Fix 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 Review URL: https://codereview.chromium.org/382013004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282682 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment