OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/browser_tab_contents_wrapper_container.h" |
| 6 |
| 7 #include "chrome/browser/ui/browser.h" |
| 8 |
| 9 BrowserTabContentsWrapperContainer::BrowserTabContentsWrapperContainer( |
| 10 Browser* browser) : browser_(browser) { |
| 11 } |
| 12 |
| 13 BrowserTabContentsWrapperContainer::~BrowserTabContentsWrapperContainer() { |
| 14 } |
| 15 |
| 16 int BrowserTabContentsWrapperContainer::TabCount() const { |
| 17 return browser_->tab_count(); |
| 18 } |
| 19 |
| 20 int BrowserTabContentsWrapperContainer::ActiveIndex() const { |
| 21 return browser_->active_index(); |
| 22 } |
| 23 |
| 24 int BrowserTabContentsWrapperContainer::GetIndexOfController( |
| 25 const content::NavigationController* controller) const { |
| 26 return browser_->GetIndexOfController(controller); |
| 27 } |
| 28 |
| 29 TabContentsWrapper* |
| 30 BrowserTabContentsWrapperContainer::GetActiveTabContentsWrapper() const { |
| 31 return browser_->GetSelectedTabContentsWrapper(); |
| 32 } |
| 33 |
| 34 content::WebContents* |
| 35 BrowserTabContentsWrapperContainer::GetActiveWebContents() const { |
| 36 return browser_->GetSelectedWebContents(); |
| 37 } |
| 38 |
| 39 TabContentsWrapper* |
| 40 BrowserTabContentsWrapperContainer::GetTabContentsWrapperAt(int index) const { |
| 41 return browser_->GetTabContentsWrapperAt(index); |
| 42 } |
| 43 |
| 44 content::WebContents* |
| 45 BrowserTabContentsWrapperContainer::GetWebContentsAt(int index) const { |
| 46 return browser_->GetWebContentsAt(index); |
| 47 } |
OLD | NEW |