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

Unified Diff: chrome/browser/ui/views/frame/opaque_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
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
===================================================================
--- chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (revision 155826)
+++ chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (working copy)
@@ -210,8 +210,9 @@
}
return FrameBorderThickness(restored) -
- ((browser_view()->IsTabStripVisible() && !restored &&
- frame()->IsMaximized()) ? kTabstripTopShadowThickness : 0);
+ ((browser_view()->IsTabStripVisible() &&
+ !restored && !frame()->ShouldLeaveOffsetNearTopBorder())
+ ? kTabstripTopShadowThickness : 0);
}
///////////////////////////////////////////////////////////////////////////////
@@ -233,7 +234,7 @@
BrowserNonClientFrameView::TabStripInsets
OpaqueBrowserFrameView::GetTabStripInsets(bool restored) const {
int top = NonClientTopBorderHeight(restored) + ((!restored &&
- (frame()->IsMaximized() ||
+ (!frame()->ShouldLeaveOffsetNearTopBorder() ||
frame()->IsFullscreen())) ?
0 : kNonClientRestoredExtraThickness);
// TODO: include OTR and caption.
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698