diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-08 21:30:29 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-08 21:30:29 +0000 |
commit | 2224bf0e44e94e4bfe18f7e73bb19c02652d4fb6 (patch) | |
tree | 19864d33f347e5bc81fbf7a7e5c1a282b45ec8f0 | |
parent | 39c287ec18a0d0f27950d33713371db2087887aa (diff) | |
download | chromium_src-2224bf0e44e94e4bfe18f7e73bb19c02652d4fb6.zip chromium_src-2224bf0e44e94e4bfe18f7e73bb19c02652d4fb6.tar.gz chromium_src-2224bf0e44e94e4bfe18f7e73bb19c02652d4fb6.tar.bz2 |
Changes TabStrip's drop indicator not to allow dropping on
mini-tabs.
BUG=32845
TEST=none
Review URL: http://codereview.chromium.org/587005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38395 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/views/tabs/tab_strip.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/views/tabs/tab_strip.cc b/chrome/browser/views/tabs/tab_strip.cc index 6a275f2..6dca162 100644 --- a/chrome/browser/views/tabs/tab_strip.cc +++ b/chrome/browser/views/tabs/tab_strip.cc @@ -1689,7 +1689,8 @@ void TabStrip::UpdateDropIndex(const DropTargetEvent& event) { // coordinates since we calculate the drop index based on the // original (and therefore non-mirrored) positions of the tabs. const int x = MirroredXCoordinateInsideView(event.x()); - for (int i = 0; i < GetTabCount(); ++i) { + // We don't allow replacing the urls of mini-tabs. + for (int i = GetMiniTabCount(); i < GetTabCount(); ++i) { Tab* tab = GetTabAt(i); const int tab_max_x = tab->x() + tab->width(); const int hot_width = tab->width() / 3; |