diff options
Diffstat (limited to 'chrome/browser/tabs/tab_strip_model.cc')
-rw-r--r-- | chrome/browser/tabs/tab_strip_model.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc index a10c9fe..baca9b0 100644 --- a/chrome/browser/tabs/tab_strip_model.cc +++ b/chrome/browser/tabs/tab_strip_model.cc @@ -433,6 +433,16 @@ void TabStripModel::SelectLastTab() { SelectTabContentsAt(count() - 1, true); } +void TabStripModel::MoveTabNext() { + int new_index = std::min(selected_index_ + 1, count() - 1); + MoveTabContentsAt(selected_index_, new_index, true); +} + +void TabStripModel::MoveTabPrevious() { + int new_index = std::max(selected_index_ - 1, 0); + MoveTabContentsAt(selected_index_, new_index, true); +} + Browser* TabStripModel::TearOffTabContents(TabContents* detached_contents, const gfx::Rect& window_bounds, const DockInfo& dock_info) { |