OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_STACKED_TAB_STRIP_LAYOUT_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_STACKED_TAB_STRIP_LAYOUT_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_STACKED_TAB_STRIP_LAYOUT_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_STACKED_TAB_STRIP_LAYOUT_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "ui/gfx/size.h" | 11 #include "ui/gfx/geometry/size.h" |
12 #include "ui/views/view_model.h" | 12 #include "ui/views/view_model.h" |
13 | 13 |
14 class Tab; | 14 class Tab; |
15 | 15 |
16 // StackedTabStripLayout is used by TabStrip in touch | 16 // StackedTabStripLayout is used by TabStrip in touch |
17 // mode. StackedTabStripLayout is responsible for managing the bounds of the | 17 // mode. StackedTabStripLayout is responsible for managing the bounds of the |
18 // tabs. StackedTabStripLayout differs from the normal layout in that it stacks | 18 // tabs. StackedTabStripLayout differs from the normal layout in that it stacks |
19 // tabs. Stacked tabs are tabs placed nearly on top of each other, and if enough | 19 // tabs. Stacked tabs are tabs placed nearly on top of each other, and if enough |
20 // consecutive stacked tabs exist they are placed on top of each other. Normally | 20 // consecutive stacked tabs exist they are placed on top of each other. Normally |
21 // stacked tabs are placed after mini-tabs, or at the end of the tabstrip, but | 21 // stacked tabs are placed after mini-tabs, or at the end of the tabstrip, but |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 int active_index_; | 235 int active_index_; |
236 | 236 |
237 // X-coordinate of the first tab. This is either |x_| if there are no | 237 // X-coordinate of the first tab. This is either |x_| if there are no |
238 // mini-tabs, or the x-coordinate of the first mini-tab. | 238 // mini-tabs, or the x-coordinate of the first mini-tab. |
239 int first_tab_x_; | 239 int first_tab_x_; |
240 | 240 |
241 DISALLOW_COPY_AND_ASSIGN(StackedTabStripLayout); | 241 DISALLOW_COPY_AND_ASSIGN(StackedTabStripLayout); |
242 }; | 242 }; |
243 | 243 |
244 #endif // CHROME_BROWSER_UI_VIEWS_TABS_STACKED_TAB_STRIP_LAYOUT_H_ | 244 #endif // CHROME_BROWSER_UI_VIEWS_TABS_STACKED_TAB_STRIP_LAYOUT_H_ |
OLD | NEW |