Index: chrome/browser/ui/views/tabs/tab_strip.h |
=================================================================== |
--- chrome/browser/ui/views/tabs/tab_strip.h (revision 92539) |
+++ chrome/browser/ui/views/tabs/tab_strip.h (working copy) |
@@ -15,6 +15,7 @@ |
#include "views/controls/button/image_button.h" |
#include "views/mouse_watcher.h" |
+class Browser; |
class Tab; |
class TabStripSelectionModel; |
@@ -39,15 +40,15 @@ |
public views::ButtonListener, |
public views::MouseWatcherListener { |
public: |
- explicit TabStrip(TabStripController* controller); |
+ explicit TabStrip(Browser* browser, TabStripController* controller); |
sky
2011/07/14 19:51:08
TabStrip shouldn't depend on browser. Move the con
|
virtual ~TabStrip(); |
- // Creates the new tab button. |
- void InitTabStripButtons(); |
- |
// Returns the bounds of the new tab button. |
gfx::Rect GetNewTabButtonBounds(); |
+ // Does he new tab button need to be sized to the top of the tab strip? |
+ bool SizeTabButtonToTopOfTabStrip(); |
+ |
// MouseWatcherListener overrides: |
virtual void MouseMovedOutOfView() OVERRIDE; |
@@ -139,6 +140,9 @@ |
void Init(); |
+ // Creates the new tab button. |
+ void InitTabStripButtons(); |
+ |
// Set the images for the new tab button. |
void LoadNewTabButtonImage(); |
@@ -268,6 +272,9 @@ |
scoped_ptr<views::MouseWatcher> mouse_watcher_; |
+ // Pointer to the browser that holds this tab strip. |
+ Browser* browser_; |
+ |
DISALLOW_COPY_AND_ASSIGN(TabStrip); |
}; |