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

Unified Diff: chrome/browser/views/frame/browser_view_layout.cc

Issue 1001003: Allow dynamic switching in and out of sidetabs mode. (Closed) Base URL: svn://svn.chromium.org/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
Index: chrome/browser/views/frame/browser_view_layout.cc
===================================================================
--- chrome/browser/views/frame/browser_view_layout.cc (revision 41630)
+++ chrome/browser/views/frame/browser_view_layout.cc (working copy)
@@ -285,7 +285,7 @@
gfx::Rect layout_bounds =
browser_view_->frame()->GetBoundsForTabStrip(tabstrip_);
- if (browser_view_->UsingSideTabs()) {
+ if (browser_view_->UseVerticalTabs()) {
vertical_layout_rect_.Inset(
layout_bounds.right() - kBrowserViewTabStripHorizontalOverlap, 0, 0, 0);
} else {
@@ -301,7 +301,7 @@
layout_bounds.set_origin(tabstrip_origin);
tabstrip_->SetVisible(true);
tabstrip_->SetBounds(layout_bounds);
- return browser_view_->UsingSideTabs() ? 0 : layout_bounds.bottom();
+ return browser_view_->UseVerticalTabs() ? 0 : layout_bounds.bottom();
}
int BrowserViewLayout::LayoutToolbar(int top) {
@@ -309,7 +309,7 @@
bool visible = browser_view_->IsToolbarVisible();
toolbar_->location_bar()->SetFocusable(visible);
int y = 0;
- if (!browser_view_->UsingSideTabs()) {
+ if (!browser_view_->UseVerticalTabs()) {
y = top -
((visible && browser_view_->IsTabStripVisible())
? kToolbarTabStripVerticalOverlap : 0);

Powered by Google App Engine
This is Rietveld 408576698