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

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: Clang build fix. After commit/revert. 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 84869)
+++ 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())
« no previous file with comments | « chrome/browser/ui/views/tabs/base_tab_strip.h ('k') | chrome/browser/ui/views/tabs/browser_tab_strip_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698