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

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

Issue 10919223: Ensure that the tabstrip is drawn at the top of the caption in Windows 8 metro mode if we are launc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
Index: chrome/browser/ui/views/frame/glass_browser_frame_view.cc
===================================================================
--- chrome/browser/ui/views/frame/glass_browser_frame_view.cc (revision 155826)
+++ chrome/browser/ui/views/frame/glass_browser_frame_view.cc (working copy)
@@ -267,11 +267,12 @@
bool restored) const {
if (!restored && frame()->IsFullscreen())
return 0;
+
// 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) +
- ((!restored && browser_view()->IsMaximized()) ?
+ ((!restored && !frame()->ShouldLeaveOffsetNearTopBorder()) ?
-kTabstripTopShadowThickness : kNonClientRestoredExtraThickness);
}
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_win.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698