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

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

Issue 1141005: Revert r42156, r42157, r42160. Allow dynamic switching in and out of sidetabs... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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/views/tabs/side_tab_strip.h ('k') | chrome/browser/views/tabs/side_tab_strip_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/tabs/side_tab_strip.cc
===================================================================
--- chrome/browser/views/tabs/side_tab_strip.cc (revision 42174)
+++ chrome/browser/views/tabs/side_tab_strip.cc (working copy)
@@ -38,6 +38,12 @@
switches::kEnableVerticalTabs);
}
+// static
+bool SideTabStrip::Visible(Profile* profile) {
+ return Available() &&
+ profile->GetPrefs()->GetBoolean(prefs::kUseVerticalTabs);
+}
+
void SideTabStrip::AddTabAt(int index) {
SideTab* tab = new SideTab(this);
AddChildView(tab);
@@ -82,10 +88,6 @@
model_->CloseTab(GetIndexOfSideTab(tab));
}
-void SideTabStrip::ShowContextMenu(SideTab* tab, const gfx::Point& p) {
- model_->ShowContextMenu(GetIndexOfSideTab(tab), p);
-}
-
////////////////////////////////////////////////////////////////////////////////
// SideTabStrip, BaseTabStrip implementation:
« no previous file with comments | « chrome/browser/views/tabs/side_tab_strip.h ('k') | chrome/browser/views/tabs/side_tab_strip_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698