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

Unified Diff: chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc

Issue 7033048: Multi-tab: Adding new Notification when tab selection changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 9 years, 6 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/ui/views/tabs/browser_tab_strip_controller.cc
diff --git a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
index bef8148434fedc07cc020fca09abf4a254ea0293..8cf63f9c7673bbbb2c735c80329e27b0d31e93b3 100644
--- a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
+++ b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/favicon/favicon_tab_helper.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/tabs/tab_strip_model.h"
+#include "chrome/browser/tabs/tab_strip_selection_model.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/browser/ui/tabs/tab_menu_model.h"
@@ -341,13 +342,9 @@ void BrowserTabStripController::TabDetachedAt(TabContentsWrapper* contents,
tabstrip_->RemoveTabAt(model_index);
}
-void BrowserTabStripController::ActiveTabChanged(
- TabContentsWrapper* old_contents,
- TabContentsWrapper* contents,
- int model_index,
- bool user_gesture) {
- tabstrip_->SelectTabAt(model_->GetIndexOfTabContents(old_contents),
- model_index);
+void BrowserTabStripController::TabSelectionChanged(
+ const TabStripSelectionModel& old_model) {
+ tabstrip_->SetSelection(old_model, model_->selection_model());
}
void BrowserTabStripController::TabMoved(TabContentsWrapper* contents,
« no previous file with comments | « chrome/browser/ui/views/tabs/browser_tab_strip_controller.h ('k') | chrome/browser/ui/views/tabs/side_tab_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698