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 UI_VIEWS_LAYOUT_GRID_LAYOUT_H_ | 5 #ifndef UI_VIEWS_LAYOUT_GRID_LAYOUT_H_ |
6 #define UI_VIEWS_LAYOUT_GRID_LAYOUT_H_ | 6 #define UI_VIEWS_LAYOUT_GRID_LAYOUT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "ui/gfx/insets.h" | 12 #include "ui/gfx/geometry/insets.h" |
13 #include "ui/views/layout/layout_manager.h" | 13 #include "ui/views/layout/layout_manager.h" |
14 #include "ui/views/view.h" | 14 #include "ui/views/view.h" |
15 | 15 |
16 // GridLayout is a LayoutManager that positions child Views in a grid. You | 16 // GridLayout is a LayoutManager that positions child Views in a grid. You |
17 // define the structure of the Grid first, then add the Views. | 17 // define the structure of the Grid first, then add the Views. |
18 // The following creates a trivial grid with two columns separated by | 18 // The following creates a trivial grid with two columns separated by |
19 // a column with padding: | 19 // a column with padding: |
20 // ColumnSet* columns = layout->AddColumnSet(0); // Give this column an | 20 // ColumnSet* columns = layout->AddColumnSet(0); // Give this column an |
21 // // identifier of 0. | 21 // // identifier of 0. |
22 // columns->AddColumn(FILL, // Views are horizontally resized to fill column. | 22 // columns->AddColumn(FILL, // Views are horizontally resized to fill column. |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 // The master column of those columns that are linked. See Column | 367 // The master column of those columns that are linked. See Column |
368 // for a description of what the master column is. | 368 // for a description of what the master column is. |
369 std::vector<Column*> master_columns_; | 369 std::vector<Column*> master_columns_; |
370 | 370 |
371 DISALLOW_COPY_AND_ASSIGN(ColumnSet); | 371 DISALLOW_COPY_AND_ASSIGN(ColumnSet); |
372 }; | 372 }; |
373 | 373 |
374 } // namespace views | 374 } // namespace views |
375 | 375 |
376 #endif // UI_VIEWS_LAYOUT_GRID_LAYOUT_H_ | 376 #endif // UI_VIEWS_LAYOUT_GRID_LAYOUT_H_ |
OLD | NEW |