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

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

Issue 7215003: Multi-tab: Adding new Notification when tab selection changes (again). (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
« no previous file with comments | « chrome/browser/ui/views/tabs/side_tab_strip.h ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/side_tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/side_tab_strip.cc b/chrome/browser/ui/views/tabs/side_tab_strip.cc
index 86cc3935a7439e7070ed027a628181241da78239..5e099e37a4317118afcaf8220a4b1c6b95258779 100644
--- a/chrome/browser/ui/views/tabs/side_tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/side_tab_strip.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/tabs/side_tab_strip.h"
+#include "chrome/browser/tabs/tab_strip_selection_model.h"
#include "chrome/browser/ui/view_ids.h"
#include "chrome/browser/ui/views/tabs/side_tab.h"
#include "chrome/browser/ui/views/tabs/tab_strip_controller.h"
@@ -175,11 +176,11 @@ void SideTabStrip::RemoveTabAt(int model_index) {
StartRemoveTabAnimation(model_index);
}
-void SideTabStrip::SelectTabAt(int old_model_index, int new_model_index) {
- GetBaseTabAtModelIndex(new_model_index)->SchedulePaint();
-
- if (controller()->IsActiveTab(new_model_index))
- MakeTabVisible(ModelIndexToTabIndex(new_model_index));
+void SideTabStrip::SetSelection(const TabStripSelectionModel& old_selection,
+ const TabStripSelectionModel& new_selection) {
+ GetBaseTabAtModelIndex(new_selection.active())->SchedulePaint();
+ if (old_selection.active() != new_selection.active())
+ MakeTabVisible(ModelIndexToTabIndex(new_selection.active()));
}
void SideTabStrip::TabTitleChangedNotLoading(int model_index) {
« no previous file with comments | « chrome/browser/ui/views/tabs/side_tab_strip.h ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698