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

Issue 382013004: Fix the black patch which would appear at the top of app windows in Chrome desktop windows with HiD… (Closed)

Created:
6 years, 5 months ago by ananta
Modified:
6 years, 5 months ago
Reviewers:
benwells, sky
CC:
chromium-reviews, tfarina
Project:
chromium
Visibility:
Public.

Description

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 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -8 lines) Patch
M chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc View 1 2 1 chunk +13 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc View 1 3 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ananta
6 years, 5 months ago (2014-07-10 21:47:21 UTC) #1
sky
https://codereview.chromium.org/382013004/diff/1/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.h File chrome/browser/ui/views/apps/glass_app_window_frame_view_win.h (right): https://codereview.chromium.org/382013004/diff/1/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.h#newcode24 chrome/browser/ui/views/apps/glass_app_window_frame_view_win.h:24: gfx::Insets GetGlassInsetsInDIP() const; I don't think you need to ...
6 years, 5 months ago (2014-07-10 23:11:09 UTC) #2
ananta
https://codereview.chromium.org/382013004/diff/1/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.h File chrome/browser/ui/views/apps/glass_app_window_frame_view_win.h (right): https://codereview.chromium.org/382013004/diff/1/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.h#newcode24 chrome/browser/ui/views/apps/glass_app_window_frame_view_win.h:24: gfx::Insets GetGlassInsetsInDIP() const; On 2014/07/10 23:11:09, sky wrote: > ...
6 years, 5 months ago (2014-07-10 23:20:58 UTC) #3
sky
LGTM https://codereview.chromium.org/382013004/diff/20001/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc File chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/382013004/diff/20001/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc#newcode75 chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc:75: gfx::Insets insets_in_dip = nit: insets is fine here. ...
6 years, 5 months ago (2014-07-11 15:26:13 UTC) #4
ananta
TBR'ing benwells https://codereview.chromium.org/382013004/diff/20001/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc File chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/382013004/diff/20001/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc#newcode75 chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc:75: gfx::Insets insets_in_dip = On 2014/07/11 15:26:13, sky ...
6 years, 5 months ago (2014-07-11 18:13:47 UTC) #5
ananta
The CQ bit was checked by ananta@chromium.org
6 years, 5 months ago (2014-07-11 18:14:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ananta@chromium.org/382013004/40001
6 years, 5 months ago (2014-07-11 18:15:23 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-07-11 20:22:59 UTC) #8
Message was sent while issue was closed.
Change committed as 282682

Powered by Google App Engine
This is Rietveld 408576698