Index: chrome/browser/ui/views/tabs/touch_tab_strip_layout.h |
diff --git a/chrome/browser/ui/views/tabs/touch_tab_strip_layout.h b/chrome/browser/ui/views/tabs/touch_tab_strip_layout.h |
index bdd955cd8094632b277bf00b5612693fa2748a8e..f0127796964936011f180715f3822511e9f152fc 100644 |
--- a/chrome/browser/ui/views/tabs/touch_tab_strip_layout.h |
+++ b/chrome/browser/ui/views/tabs/touch_tab_strip_layout.h |
@@ -96,6 +96,10 @@ class TouchTabStripLayout { |
// Resets to an ideal layout state. |
void ResetToIdealState(); |
+ // Makes |index| visible. This is used when a new tab is added that isn't |
+ // active. |
+ void MakeVisible(int index); |
+ |
// Returns the x-coordinate for the active tab constrained by the current tab |
// counts. |
int ConstrainActiveX(int x) const; |
@@ -155,8 +159,7 @@ class TouchTabStripLayout { |
// Width needed to display |count| tabs. |
int width_for_count(int count) const { |
- return count == 0 ? 0 : |
- (count * size_.width()) + (std::max(count - 1, 0) * padding_); |
+ return (count * size_.width()) + (std::max(count - 1, 0) * padding_); |
} |
// Padding needed for |count| stacked tabs. |