summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
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/views
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/views')
-rw-r--r--chrome/browser/views/tabs/dragged_tab_controller.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/views/tabs/dragged_tab_controller.cc b/chrome/browser/views/tabs/dragged_tab_controller.cc
index fc5d0e1..95e2022 100644
--- a/chrome/browser/views/tabs/dragged_tab_controller.cc
+++ b/chrome/browser/views/tabs/dragged_tab_controller.cc
@@ -584,7 +584,7 @@ void DraggedTabController::MoveTab(const gfx::Point& screen_point) {
to_index = NormalizeIndexToAttachedTabStrip(to_index);
if (from_index != to_index) {
last_move_screen_x_ = screen_point.x();
- attached_model->MoveTabContentsAt(from_index, to_index);
+ attached_model->MoveTabContentsAt(from_index, to_index, true);
}
}
}
@@ -923,7 +923,8 @@ void DraggedTabController::RevertDrag() {
} else {
// The Tab was moved within the TabStrip where the drag was initiated.
// Move it back to the starting location.
- source_tabstrip_->model()->MoveTabContentsAt(index, source_model_index_);
+ source_tabstrip_->model()->MoveTabContentsAt(index, source_model_index_,
+ true);
}
} else {
// TODO(beng): (Cleanup) seems like we should use Attach() for this