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

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

Issue 10540100: TabContentsWrapper -> TabContents, part 48. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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 9
10 #include <set> 10 #include <set>
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 reinterpret_cast<base::win::CurrentTabInfo*>(w_param); 491 reinterpret_cast<base::win::CurrentTabInfo*>(w_param);
492 492
493 Browser* browser = browser_view()->browser(); 493 Browser* browser = browser_view()->browser();
494 DCHECK(browser); 494 DCHECK(browser);
495 495
496 // We allocate memory for the title and url via LocalAlloc. The caller has to 496 // We allocate memory for the title and url via LocalAlloc. The caller has to
497 // free the memory via LocalFree. 497 // free the memory via LocalFree.
498 current_tab_info->title = base::win::LocalAllocAndCopyString( 498 current_tab_info->title = base::win::LocalAllocAndCopyString(
499 browser->GetWindowTitleForCurrentTab()); 499 browser->GetWindowTitleForCurrentTab());
500 500
501 WebContents* current_tab = browser->GetSelectedWebContents(); 501 WebContents* current_tab = browser->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 //////////////////////////////////////////////////////////////////////////////// 509 ////////////////////////////////////////////////////////////////////////////////
510 // BrowserFrame, public: 510 // BrowserFrame, public:
511 511
512 // static 512 // static
513 const gfx::Font& BrowserFrame::GetTitleFont() { 513 const gfx::Font& BrowserFrame::GetTitleFont() {
514 static gfx::Font* title_font = 514 static gfx::Font* title_font =
515 new gfx::Font(views::NativeWidgetWin::GetWindowTitleFont()); 515 new gfx::Font(views::NativeWidgetWin::GetWindowTitleFont());
516 return *title_font; 516 return *title_font;
517 } 517 }
518 518
519 //////////////////////////////////////////////////////////////////////////////// 519 ////////////////////////////////////////////////////////////////////////////////
520 // NativeBrowserFrame, public: 520 // NativeBrowserFrame, public:
521 521
522 // static 522 // static
523 NativeBrowserFrame* NativeBrowserFrame::CreateNativeBrowserFrame( 523 NativeBrowserFrame* NativeBrowserFrame::CreateNativeBrowserFrame(
524 BrowserFrame* browser_frame, 524 BrowserFrame* browser_frame,
525 BrowserView* browser_view) { 525 BrowserView* browser_view) {
526 return new BrowserFrameWin(browser_frame, browser_view); 526 return new BrowserFrameWin(browser_frame, browser_view);
527 } 527 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698