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

Unified Diff: chrome/browser/ui/views/frame/browser_frame_win.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/browser_frame_win.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_frame_win.cc (revision 155826)
+++ chrome/browser/ui/views/frame/browser_frame_win.cc (working copy)
@@ -32,6 +32,7 @@
#include "googleurl/src/gurl.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
+#include "ui/base/layout.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/simple_menu_model.h"
#include "ui/base/resource/resource_bundle.h"
@@ -612,6 +613,14 @@
return *title_font;
}
+bool BrowserFrame::ShouldLeaveOffsetNearTopBorder() {
+ if (base::win::IsMetroProcess()) {
+ if (ui::GetDisplayLayout() == ui::LAYOUT_DESKTOP)
+ return false;
+ }
+ return !IsMaximized();
+}
+
////////////////////////////////////////////////////////////////////////////////
// NativeBrowserFrame, public:
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame.cc ('k') | chrome/browser/ui/views/frame/glass_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698