| OLD | NEW |
| 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/browser_toolbar_model_delegate.h" | 5 #include "chrome/browser/ui/browser_toolbar_model_delegate.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
| 8 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 8 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 9 | 9 |
| 10 BrowserToolbarModelDelegate::BrowserToolbarModelDelegate(Browser* browser) | 10 BrowserToolbarModelDelegate::BrowserToolbarModelDelegate(Browser* browser) |
| 11 : browser_(browser) { | 11 : browser_(browser) { |
| 12 } | 12 } |
| 13 | 13 |
| 14 BrowserToolbarModelDelegate::~BrowserToolbarModelDelegate() { | 14 BrowserToolbarModelDelegate::~BrowserToolbarModelDelegate() { |
| 15 } | 15 } |
| 16 | 16 |
| 17 content::WebContents* | 17 content::WebContents* |
| 18 BrowserToolbarModelDelegate::GetActiveWebContents() const { | 18 BrowserToolbarModelDelegate::GetActiveWebContents() const { |
| 19 return browser_->tab_strip_model()->GetActiveWebContents(); | 19 return browser_->tab_strip_model()->GetActiveWebContents(); |
| 20 } | 20 } |
| 21 | |
| 22 bool BrowserToolbarModelDelegate::InTabbedBrowser() const { | |
| 23 return browser_->is_type_tabbed(); | |
| 24 } | |
| OLD | NEW |