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/macros.h" |
11 #include "ui/gfx/geometry/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 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 int active_index_; | 236 int active_index_; |
237 | 237 |
238 // X-coordinate of the first tab. This is either |x_| if there are no | 238 // X-coordinate of the first tab. This is either |x_| if there are no |
239 // pinned tabs, or the x-coordinate of the first pinned tab. | 239 // pinned tabs, or the x-coordinate of the first pinned tab. |
240 int first_tab_x_; | 240 int first_tab_x_; |
241 | 241 |
242 DISALLOW_COPY_AND_ASSIGN(StackedTabStripLayout); | 242 DISALLOW_COPY_AND_ASSIGN(StackedTabStripLayout); |
243 }; | 243 }; |
244 | 244 |
245 #endif // CHROME_BROWSER_UI_VIEWS_TABS_STACKED_TAB_STRIP_LAYOUT_H_ | 245 #endif // CHROME_BROWSER_UI_VIEWS_TABS_STACKED_TAB_STRIP_LAYOUT_H_ |
OLD | NEW |