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