diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-03 15:52:29 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-03 15:52:29 +0000 |
commit | b334487af4e2c5b9d27e0807347f7fa94b6d89a5 (patch) | |
tree | 39d3ab8fc095c814d80c65f1df93c7e01d09eb4e /chrome/browser/browser.h | |
parent | 2823b2b8a5b66279c2eac18f62b7756e89d72828 (diff) | |
download | chromium_src-b334487af4e2c5b9d27e0807347f7fa94b6d89a5.zip chromium_src-b334487af4e2c5b9d27e0807347f7fa94b6d89a5.tar.gz chromium_src-b334487af4e2c5b9d27e0807347f7fa94b6d89a5.tar.bz2 |
Adds ability for newly inserted tabs to appear before other tabs. I'll
wire this up to vertical tabs shortly.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1687020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46224 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.h')
-rw-r--r-- | chrome/browser/browser.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h index 65eb214..92cf741 100644 --- a/chrome/browser/browser.h +++ b/chrome/browser/browser.h @@ -320,6 +320,12 @@ class Browser : public TabStripModelDelegate, // Tab adding/showing functions ///////////////////////////////////////////// + // Returns the index to insert a tab at during session restore and startup. + // |relative_index| gives the index of the url into the number of tabs that + // are going to be opened. For example, if three urls are passed in on the + // command line this is invoked three times with the values 0, 1 and 2. + int GetIndexForInsertionDuringRestore(int relative_index); + // Adds a new tab at the specified index. |add_types| is a bitmask of the // values defined by AddTabTypes; see AddTabTypes for details. If |instance| // is not null, its process will be used to render the tab. If @@ -865,6 +871,14 @@ class Browser : public TabStripModelDelegate, NavigationController& GetOrCloneNavigationControllerForDisposition( WindowOpenDisposition disp); + // Sets the insertion policy of the tabstrip based on whether vertical tabs + // are enabled. + void UpdateTabStripModelInsertionPolicy(); + + // Invoked when the use vertical tabs preference changes. Resets the insertion + // policy of the tab strip model and notifies the window. + void UseVerticalTabsChanged(); + // Data members ///////////////////////////////////////////////////////////// NotificationRegistrar registrar_; |