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

Side by Side Diff: chrome/browser/ui/views/frame/browser_frame_win.cc

Issue 25535005: Rename BrowserFrameAura to BrowserFrameAsh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/frame/browser_frame_win.h" 5 #include "chrome/browser/ui/views/frame/browser_frame_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <set> 9 #include <set>
10 10
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 WebContents* current_tab = browser->tab_strip_model()->GetActiveWebContents(); 501 WebContents* current_tab = browser->tab_strip_model()->GetActiveWebContents();
502 DCHECK(current_tab); 502 DCHECK(current_tab);
503 503
504 current_tab_info->url = base::win::LocalAllocAndCopyString( 504 current_tab_info->url = base::win::LocalAllocAndCopyString(
505 UTF8ToWide(current_tab->GetURL().spec())); 505 UTF8ToWide(current_tab->GetURL().spec()));
506 } 506 }
507 507
508 //////////////////////////////////////////////////////////////////////////////// 508 ////////////////////////////////////////////////////////////////////////////////
509 // BrowserFrame, public: 509 // BrowserFrame, public:
510 510
511 // static
512 const gfx::Font& BrowserFrame::GetTitleFont() {
513 static gfx::Font* title_font =
514 new gfx::Font(views::NativeWidgetWin::GetWindowTitleFont());
515 return *title_font;
516 }
517
518 bool BrowserFrame::ShouldLeaveOffsetNearTopBorder() { 511 bool BrowserFrame::ShouldLeaveOffsetNearTopBorder() {
519 if (win8::IsSingleWindowMetroMode()) { 512 if (win8::IsSingleWindowMetroMode()) {
520 if (ui::GetDisplayLayout() == ui::LAYOUT_DESKTOP) 513 if (ui::GetDisplayLayout() == ui::LAYOUT_DESKTOP)
521 return false; 514 return false;
522 } 515 }
523 return !IsMaximized(); 516 return !IsMaximized();
524 } 517 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698