summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/toolbar_view.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-08 02:48:33 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-08 02:48:33 +0000
commit981f62b8c54124f3ff500d5ce4dcdee37d597815 (patch)
tree80c2b476fc20bb8232cd9b2f99c6ed11d97b085a /chrome/browser/views/toolbar_view.h
parent37a0b1105ff4b6eb0a1fc54817ba9ea6dc6f4627 (diff)
downloadchromium_src-981f62b8c54124f3ff500d5ce4dcdee37d597815.zip
chromium_src-981f62b8c54124f3ff500d5ce4dcdee37d597815.tar.gz
chromium_src-981f62b8c54124f3ff500d5ce4dcdee37d597815.tar.bz2
Collapse toolbars in app tabs.
Review URL: http://codereview.chromium.org/2016002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46775 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/toolbar_view.h')
-rw-r--r--chrome/browser/views/toolbar_view.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/views/toolbar_view.h b/chrome/browser/views/toolbar_view.h
index cdd3318..73d0294 100644
--- a/chrome/browser/views/toolbar_view.h
+++ b/chrome/browser/views/toolbar_view.h
@@ -87,6 +87,8 @@ class ToolbarView : public AccessibleToolbarView,
LocationBarView* location_bar() const { return location_bar_; }
views::MenuButton* page_menu() const { return page_menu_; }
views::MenuButton* app_menu() const { return app_menu_; }
+ bool collapsed() const { return collapsed_; }
+ void set_collapsed(bool val) { collapsed_ = val; }
// Overridden from views::FocusChangeListener:
virtual void FocusWillChange(views::View* focused_before,
@@ -232,6 +234,9 @@ class ToolbarView : public AccessibleToolbarView,
// running.
bool* destroyed_flag_;
+ // When collapsed, the toolbar is just a tiny strip, no controls are visible.
+ bool collapsed_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView);
};