diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-19 22:22:56 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-19 22:22:56 +0000 |
commit | 27239fb2b868ef6aff2d9d13932ba5debe87e9c7 (patch) | |
tree | 709dc5559aa96f57875ee48f449f86b5a0ae36eb /chrome/browser/views/tabs/tab_strip.h | |
parent | a5d16da421fc2eaa785204a9cf99e0c82ff159c4 (diff) | |
download | chromium_src-27239fb2b868ef6aff2d9d13932ba5debe87e9c7.zip chromium_src-27239fb2b868ef6aff2d9d13932ba5debe87e9c7.tar.gz chromium_src-27239fb2b868ef6aff2d9d13932ba5debe87e9c7.tar.bz2 |
Allow dynamic switching in and out of sidetabs mode.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1001003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42156 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tabs/tab_strip.h')
-rw-r--r-- | chrome/browser/views/tabs/tab_strip.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/views/tabs/tab_strip.h b/chrome/browser/views/tabs/tab_strip.h index 6285e1d..4e2dec4 100644 --- a/chrome/browser/views/tabs/tab_strip.h +++ b/chrome/browser/views/tabs/tab_strip.h @@ -74,6 +74,11 @@ class TabStrip : public BaseTabStrip, // Compatible tab strips can transfer tabs during drag and drop. bool IsCompatibleWith(TabStrip* other) const; + // Populates the BaseTabStrip implementation from its model. This is primarily + // useful when switching between display types and there are existing tabs. + // Upon initial creation the TabStrip is empty. + void InitFromModel(); + // BaseTabStrip implementation: virtual int GetPreferredHeight(); virtual void SetBackgroundOffset(const gfx::Point& offset); @@ -136,6 +141,8 @@ class TabStrip : public BaseTabStrip, virtual void CloseTab(Tab* tab); virtual bool IsCommandEnabledForTab( TabStripModel::ContextMenuCommand command_id, const Tab* tab) const; + virtual bool IsCommandCheckedForTab( + TabStripModel::ContextMenuCommand command_id, const Tab* tab) const; virtual void ExecuteCommandForTab( TabStripModel::ContextMenuCommand command_id, Tab* tab); virtual void StartHighlightTabsForCommand( |