summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tabs/tab_strip_model.h
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 01:27:13 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 01:27:13 +0000
commitf606747ffb21e9d0c6d55c9b57d42445503728f1 (patch)
treeff33aa2756665de01a8cb608d06fcdbcbb2e0263 /chrome/browser/tabs/tab_strip_model.h
parent6b2ebf86a61169856aa3e650c294fd3511da5ee3 (diff)
downloadchromium_src-f606747ffb21e9d0c6d55c9b57d42445503728f1.zip
chromium_src-f606747ffb21e9d0c6d55c9b57d42445503728f1.tar.gz
chromium_src-f606747ffb21e9d0c6d55c9b57d42445503728f1.tar.bz2
ad an argument to MoveTabContentsAt() that switches whether the moved tab is set as the selected tab, or if the selected tab is left selected (but possibly moved).
Review URL: http://codereview.chromium.org/63153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13823 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs/tab_strip_model.h')
-rw-r--r--chrome/browser/tabs/tab_strip_model.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.h b/chrome/browser/tabs/tab_strip_model.h
index c6b7c76..bb9b2c5 100644
--- a/chrome/browser/tabs/tab_strip_model.h
+++ b/chrome/browser/tabs/tab_strip_model.h
@@ -285,7 +285,10 @@ class TabStripModel : public NotificationObserver {
// Move the TabContents at the specified index to another index. This method
// does NOT send Detached/Attached notifications, rather it moves the
// TabContents inline and sends a Moved notification instead.
- void MoveTabContentsAt(int index, int to_position);
+ // If |select_after_move| is false, whatever tab was selected before the move
+ // will still be selected, but it's index may have incremented or decremented
+ // one slot.
+ void MoveTabContentsAt(int index, int to_position, bool select_after_move);
// Returns the currently selected TabContents, or NULL if there is none.
TabContents* GetSelectedTabContents() const;