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

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

Issue 6913026: Compact Navigation prototype (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 8 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/base_tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/base_tab_strip.cc b/chrome/browser/ui/views/tabs/base_tab_strip.cc
index 2a980dfaa23ef36b00659702b947b37280bdef73..c87e2e5b5f7dbf3d06d309713d61e2b1af0d493a 100644
--- a/chrome/browser/ui/views/tabs/base_tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/base_tab_strip.cc
@@ -375,6 +375,13 @@ BaseTab* BaseTabStrip::GetTabAt(BaseTab* tab,
return GetTabAtLocal(local_point);
}
+void BaseTabStrip::ReselectTab(const BaseTab* tab) const {
+ DCHECK(IsActiveTab(tab));
+ int index = GetModelIndexOfBaseTab(tab);
+ if (controller() && IsValidModelIndex(index))
+ controller()->ReselectTab(index);
+}
+
void BaseTabStrip::Layout() {
// Only do a layout if our size changed.
if (last_layout_size_ == size())

Powered by Google App Engine
This is Rietveld 408576698