Index: chrome/browser/tabs/tab_strip_model_observer.h |
diff --git a/chrome/browser/tabs/tab_strip_model_observer.h b/chrome/browser/tabs/tab_strip_model_observer.h |
index 290d7700c87e506128313b0009e96ecee1c71663..54f4ea6adf3eae4e0909b06eafbaced662007e15 100644 |
--- a/chrome/browser/tabs/tab_strip_model_observer.h |
+++ b/chrome/browser/tabs/tab_strip_model_observer.h |
@@ -6,6 +6,8 @@ |
#define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_OBSERVER_H_ |
#pragma once |
+#include <vector> |
+ |
class TabContentsWrapper; |
class TabStripModel; |
@@ -71,14 +73,17 @@ class TabStripModelObserver { |
// differs from |new_contents|. |user_gesture| specifies whether or not this |
// was done by a user input event (e.g. clicking on a tab, keystroke) or as a |
// side-effect of some other function. |
- // |
- // TODO(dpapad): Add TabSelectionChanged method for when the selected tabs |
- // change. |
virtual void ActiveTabChanged(TabContentsWrapper* old_contents, |
TabContentsWrapper* new_contents, |
int index, |
bool user_gesture); |
+ // Sent when the selection changes. |previously_selected| and |
+ // |currently_selected| contain the indices of the tabs that were previously |
+ // and currently selected respectively. |
+ virtual void TabSelectionChanged(const std::vector<int>& previously_selected, |
sky
2011/06/01 20:56:04
Add test coverage of this.
Also, it seems like you
dpapad
2011/06/02 00:28:22
Yes, currently TabSelectionChanged() is called fro
sky
2011/06/02 16:07:14
You're right on 1. My intention with the two metho
|
+ const std::vector<int>& currently_selected); |
+ |
// The specified TabContents at |from_index| was moved to |to_index|. |
virtual void TabMoved(TabContentsWrapper* contents, |
int from_index, |