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

Unified Diff: chrome/browser/views/tabs/browser_tab_strip_controller.h

Issue 2941001: Removal of TabContentsDelegate::GetBrowser() interface method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/views/tabs/browser_tab_strip_controller.h
===================================================================
--- chrome/browser/views/tabs/browser_tab_strip_controller.h (revision 54528)
+++ chrome/browser/views/tabs/browser_tab_strip_controller.h (working copy)
@@ -13,6 +13,7 @@
class BaseTab;
class BaseTabStrip;
+class Browser;
struct TabRendererData;
@@ -22,7 +23,7 @@
public TabStripModelObserver,
public NotificationObserver {
public:
- explicit BrowserTabStripController(TabStripModel* model);
+ BrowserTabStripController(Browser* browser, TabStripModel* model);
virtual ~BrowserTabStripController();
void InitFromModel(BaseTabStrip* tabstrip);
@@ -104,6 +105,9 @@
BaseTabStrip* tabstrip_;
+ // Non-owning pointer to the browser which is using this controller.
+ Browser* browser_;
+
// If non-NULL it means we're showing a menu for the tab.
scoped_ptr<TabContextMenuContents> context_menu_contents_;
« no previous file with comments | « chrome/browser/views/frame/browser_view.cc ('k') | chrome/browser/views/tabs/browser_tab_strip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698