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

Side by Side Diff: chrome/browser/ui/browser_tab_contents_wrapper_container.h

Issue 9479008: Re-factor location bar/toolbar code to get rid of the browser dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments fix Created 8 years, 9 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
(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 #ifndef CHROME_BROWSER_UI_BROWSER_TAB_CONTENTS_WRAPPER_CONTAINER_H_
6 #define CHROME_BROWSER_UI_BROWSER_TAB_CONTENTS_WRAPPER_CONTAINER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_container.h"
12
13 class Browser;
14
15 // Implementation of TabContentsWrapperContainer which uses an instance of
16 // Browser in order to fulfil its duties.
17 class BrowserTabContentsWrapperContainer : public TabContentsWrapperContainer {
18 public:
19 explicit BrowserTabContentsWrapperContainer(Browser* browser);
20 virtual ~BrowserTabContentsWrapperContainer();
21
22 // TabContentsWrapperContainer implementation:
23 virtual int TabCount() const OVERRIDE;
24 virtual int ActiveIndex() const OVERRIDE;
25 virtual int GetIndexOfController(
26 const content::NavigationController* controller) const OVERRIDE;
27 virtual TabContentsWrapper* GetActiveTabContentsWrapper() const OVERRIDE;
28 virtual content::WebContents* GetActiveWebContents() const OVERRIDE;
29 virtual TabContentsWrapper* GetTabContentsWrapperAt(int index) const OVERRIDE;
30 virtual content::WebContents* GetWebContentsAt(int index) const OVERRIDE;
31
32 private:
33 Browser* browser_;
34
35 DISALLOW_COPY_AND_ASSIGN(BrowserTabContentsWrapperContainer);
36 };
37
38 #endif // CHROME_BROWSER_UI_BROWSER_TAB_CONTENTS_WRAPPER_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698