Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1305)

Unified Diff: chrome/browser/tabs/tab_strip_model_observer.h

Issue 6933037: Multi-tab selection for Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing nits Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698