diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-18 15:53:41 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-18 15:53:41 +0000 |
commit | eaca0ad17b151d28b1e5821f1fce27a6dadc0b29 (patch) | |
tree | ee2365ab208b0196ba01dc9156b10f7b1a96ea60 /chrome/browser/tabs/tab_strip_model.h | |
parent | d74f92e7c7c15d9cc86a54a70e68131414107c47 (diff) | |
download | chromium_src-eaca0ad17b151d28b1e5821f1fce27a6dadc0b29.zip chromium_src-eaca0ad17b151d28b1e5821f1fce27a6dadc0b29.tar.gz chromium_src-eaca0ad17b151d28b1e5821f1fce27a6dadc0b29.tar.bz2 |
More TabStripModel renaming:
AddTabTypes::ADD_SELECTED -> ADD_ACTIVE
SelectTabContentsAt -> ActivateTabAt
BUG=none
TEST=none
R=ben@chromium.org
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6840007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81947 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 | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.h b/chrome/browser/tabs/tab_strip_model.h index ed15ffb..5873bd6 100644 --- a/chrome/browser/tabs/tab_strip_model.h +++ b/chrome/browser/tabs/tab_strip_model.h @@ -88,8 +88,8 @@ class TabStripModel : public NotificationObserver { // tab. ADD_NONE = 0, - // The tab should be selected. - ADD_SELECTED = 1 << 0, + // The tab should be active. + ADD_ACTIVE = 1 << 0, // The tab should be pinned. ADD_PINNED = 1 << 1, @@ -104,9 +104,8 @@ class TabStripModel : public NotificationObserver { // certain situations. ADD_INHERIT_GROUP = 1 << 3, - // If set the newly inserted tab's opener is set to the currently selected - // tab. If not set the tab may still inherit the group/opener under certain - // situations. + // If set the newly inserted tab's opener is set to the active tab. If not + // set the tab may still inherit the group/opener under certain situations. // NOTE: this is ignored if ADD_INHERIT_GROUP is set. ADD_INHERIT_OPENER = 1 << 4, }; @@ -160,7 +159,7 @@ class TabStripModel : public NotificationObserver { bool ContainsIndex(int index) const; // Adds the specified TabContents in the default location. Tabs opened in the - // foreground inherit the group of the previously selected tab. + // foreground inherit the group of the previously active tab. void AppendTabContents(TabContentsWrapper* contents, bool foreground); // Adds the specified TabContents at the specified location. |add_types| is a @@ -208,11 +207,11 @@ class TabStripModel : public NotificationObserver { // strip). TabContentsWrapper* DetachTabContentsAt(int index); - // Select the TabContents at the specified index. |user_gesture| is true if - // the user actually clicked on the tab or navigated to it using a keyboard - // command, false if the tab was selected as a by-product of some other + // Makes the tab at the specified index the active tab. |user_gesture| is true + // if the user actually clicked on the tab or navigated to it using a keyboard + // command, false if the tab was activated as a by-product of some other // action. - void SelectTabContentsAt(int index, bool user_gesture); + void ActivateTabAt(int index, bool user_gesture); // Move the TabContents at the specified index to another index. This method // does NOT send Detached/Attached notifications, rather it moves the |