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