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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.h

Issue 7373006: When the chrome window is maximized, make sure the new tab button extends (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698