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

Unified Diff: chrome/browser/ui/views/frame/glass_browser_frame_view.cc

Issue 12684006: Correct title bar size for HiDPI Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Corrected include ordering Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_win.cc ('k') | ui/base/win/dpi.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/glass_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
index 5fafa469c5d54efc03e50bd8ba7f4cf81a8da63b..1c6a43f2d1048c4c5216d81ab473d0303d8c62e8 100644
--- a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
@@ -25,6 +25,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle_win.h"
#include "ui/base/theme_provider.h"
+#include "ui/base/win/dpi.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/icon_util.h"
#include "ui/gfx/image/image.h"
@@ -272,7 +273,7 @@ int GlassBrowserFrameView::NonClientTopBorderHeight(
// We'd like to use FrameBorderThickness() here, but the maximized Aero glass
// frame has a 0 frame border around most edges and a CYSIZEFRAME-thick border
// at the top (see AeroGlassFrame::OnGetMinMaxInfo()).
- return GetSystemMetrics(SM_CYSIZEFRAME) +
+ return ui::win::GetSystemMetricsInDIP(SM_CYSIZEFRAME) +
((!restored && !frame()->ShouldLeaveOffsetNearTopBorder()) ?
-kTabstripTopShadowThickness : kNonClientRestoredExtraThickness);
}
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_win.cc ('k') | ui/base/win/dpi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698