diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 23:55:39 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 23:55:39 +0000 |
commit | 5aea18697928ef225433a2c0a334f192fc4eb8e1 (patch) | |
tree | e37eda1ce5838610b0cfae685c9b16b156d29468 /chrome/browser/tabs/tab_strip_model.h | |
parent | 2d2dfc6c97e63b09d8c13177393d7e98a49847fd (diff) | |
download | chromium_src-5aea18697928ef225433a2c0a334f192fc4eb8e1.zip chromium_src-5aea18697928ef225433a2c0a334f192fc4eb8e1.tar.gz chromium_src-5aea18697928ef225433a2c0a334f192fc4eb8e1.tar.bz2 |
Adds flag for selecting different sets of tabs in the tab strip.
BUG=none
TEST=none
R=ben@chromium.org
Review URL: http://codereview.chromium.org/6725027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79216 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs/tab_strip_model.h')
-rw-r--r-- | chrome/browser/tabs/tab_strip_model.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.h b/chrome/browser/tabs/tab_strip_model.h index 9c481b2..df0c545 100644 --- a/chrome/browser/tabs/tab_strip_model.h +++ b/chrome/browser/tabs/tab_strip_model.h @@ -429,6 +429,8 @@ class TabStripModel : public NotificationObserver { CommandTogglePinned, CommandBookmarkAllTabs, CommandUseVerticalTabs, + CommandSelectByDomain, + CommandSelectByOpener, CommandLast }; @@ -467,8 +469,12 @@ class TabStripModel : public NotificationObserver { static bool ContextMenuCommandToBrowserCommand(int cmd_id, int* browser_cmd); private: - // We cannot be constructed without a delegate. - TabStripModel(); + // Gets the set of tab indices whose domain matches the tab at |index|. + void GetIndicesWithSameDomain(int index, std::vector<int>* indices); + + // Gets the set of tab indices that have the same opener as the tab at + // |index|. + void GetIndicesWithSameOpener(int index, std::vector<int>* indices); // If |index| is selected all the selected indices are returned, otherwise a // vector with |index| is returned. This is used when executing commands to @@ -628,7 +634,7 @@ class TabStripModel : public NotificationObserver { TabStripSelectionModel selection_model_; - DISALLOW_COPY_AND_ASSIGN(TabStripModel); + DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); }; #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ |