This source file includes following definitions.
- GetActiveWebContents
- InTabbedBrowser
#include "chrome/browser/ui/browser_toolbar_model_delegate.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
BrowserToolbarModelDelegate::BrowserToolbarModelDelegate(Browser* browser)
: browser_(browser) {
}
BrowserToolbarModelDelegate::~BrowserToolbarModelDelegate() {
}
content::WebContents*
BrowserToolbarModelDelegate::GetActiveWebContents() const {
return browser_->tab_strip_model()->GetActiveWebContents();
}
bool BrowserToolbarModelDelegate::InTabbedBrowser() const {
return browser_->is_type_tabbed();
}