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

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: Added missing DropdownBarHostDelegate header file. 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/ui/views/tabs/base_tab_strip.cc
===================================================================
--- chrome/browser/ui/views/tabs/base_tab_strip.cc (revision 84320)
+++ chrome/browser/ui/views/tabs/base_tab_strip.cc (working copy)
@@ -375,6 +375,13 @@
return GetTabAtLocal(local_point);
}
+void BaseTabStrip::ClickActiveTab(const BaseTab* tab) const {
+ DCHECK(IsActiveTab(tab));
+ int index = GetModelIndexOfBaseTab(tab);
+ if (controller() && IsValidModelIndex(index))
+ controller()->ClickActiveTab(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