summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tabs
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-27 21:46:51 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-27 21:46:51 +0000
commit2ab3fa953c9d0551c093b823e2660ec664a515e0 (patch)
tree6825686b1fe13fed669618c9d5b2ddf613271997 /chrome/browser/tabs
parent1647ac8f2c5de0809eb4e78f1902fba19dbb7c53 (diff)
downloadchromium_src-2ab3fa953c9d0551c093b823e2660ec664a515e0.zip
chromium_src-2ab3fa953c9d0551c093b823e2660ec664a515e0.tar.gz
chromium_src-2ab3fa953c9d0551c093b823e2660ec664a515e0.tar.bz2
Removes the int parameter from TabStripModel::TabDeselectedAt. It
wasn't always right and no one used it anyway. BUG=none TEST=none Review URL: http://codereview.chromium.org/6598025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76195 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs')
-rw-r--r--chrome/browser/tabs/default_tab_handler.cc5
-rw-r--r--chrome/browser/tabs/default_tab_handler.h2
-rw-r--r--chrome/browser/tabs/tab_strip_model.cc2
-rw-r--r--chrome/browser/tabs/tab_strip_model_observer.cc3
-rw-r--r--chrome/browser/tabs/tab_strip_model_observer.h4
5 files changed, 7 insertions, 9 deletions
diff --git a/chrome/browser/tabs/default_tab_handler.cc b/chrome/browser/tabs/default_tab_handler.cc
index f25a526..1957b93 100644
--- a/chrome/browser/tabs/default_tab_handler.cc
+++ b/chrome/browser/tabs/default_tab_handler.cc
@@ -150,9 +150,8 @@ void DefaultTabHandler::TabDetachedAt(TabContentsWrapper* contents, int index) {
delegate_->AsBrowser()->TabDetachedAt(contents, index);
}
-void DefaultTabHandler::TabDeselectedAt(TabContentsWrapper* contents,
- int index) {
- delegate_->AsBrowser()->TabDeselectedAt(contents, index);
+void DefaultTabHandler::TabDeselected(TabContentsWrapper* contents) {
+ delegate_->AsBrowser()->TabDeselected(contents);
}
void DefaultTabHandler::TabSelectedAt(TabContentsWrapper* old_contents,
diff --git a/chrome/browser/tabs/default_tab_handler.h b/chrome/browser/tabs/default_tab_handler.h
index 9a365fa..3b4ae36 100644
--- a/chrome/browser/tabs/default_tab_handler.h
+++ b/chrome/browser/tabs/default_tab_handler.h
@@ -63,7 +63,7 @@ class DefaultTabHandler : public TabHandler,
TabContentsWrapper* contents,
int index);
virtual void TabDetachedAt(TabContentsWrapper* contents, int index);
- virtual void TabDeselectedAt(TabContentsWrapper* contents, int index);
+ virtual void TabDeselected(TabContentsWrapper* contents);
virtual void TabSelectedAt(TabContentsWrapper* old_contents,
TabContentsWrapper* new_contents,
int index,
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc
index b58eb903..d294e43 100644
--- a/chrome/browser/tabs/tab_strip_model.cc
+++ b/chrome/browser/tabs/tab_strip_model.cc
@@ -959,7 +959,7 @@ void TabStripModel::ChangeSelectedContentsFrom(
TabContentsWrapper* last_selected_contents = old_contents;
if (last_selected_contents) {
FOR_EACH_OBSERVER(TabStripModelObserver, observers_,
- TabDeselectedAt(last_selected_contents, selected_index_));
+ TabDeselected(last_selected_contents));
}
selected_index_ = to_index;
diff --git a/chrome/browser/tabs/tab_strip_model_observer.cc b/chrome/browser/tabs/tab_strip_model_observer.cc
index dec6f41..f20746a 100644
--- a/chrome/browser/tabs/tab_strip_model_observer.cc
+++ b/chrome/browser/tabs/tab_strip_model_observer.cc
@@ -18,8 +18,7 @@ void TabStripModelObserver::TabDetachedAt(TabContentsWrapper* contents,
int index) {
}
-void TabStripModelObserver::TabDeselectedAt(TabContentsWrapper* contents,
- int index) {
+void TabStripModelObserver::TabDeselected(TabContentsWrapper* contents) {
}
void TabStripModelObserver::TabSelectedAt(TabContentsWrapper* old_contents,
diff --git a/chrome/browser/tabs/tab_strip_model_observer.h b/chrome/browser/tabs/tab_strip_model_observer.h
index d123961..2eafec0 100644
--- a/chrome/browser/tabs/tab_strip_model_observer.h
+++ b/chrome/browser/tabs/tab_strip_model_observer.h
@@ -56,10 +56,10 @@ class TabStripModelObserver {
// action is necessary to deal with the TabContents no longer being present.
virtual void TabDetachedAt(TabContentsWrapper* contents, int index);
- // The selected TabContents is about to change from |old_contents| at |index|.
+ // The selected TabContents is about to change from |old_contents|.
// This gives observers a chance to prepare for an impending switch before it
// happens.
- virtual void TabDeselectedAt(TabContentsWrapper* contents, int index);
+ virtual void TabDeselected(TabContentsWrapper* contents);
// The selected TabContents changed from |old_contents| to |new_contents| at
// |index|. |user_gesture| specifies whether or not this was done by a user