| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "ui/views/layout/layout_manager.h" | 13 #include "ui/views/layout/layout_manager.h" |
| 14 #include "views/view.h" | 14 #include "ui/views/view.h" |
| 15 | 15 |
| 16 namespace gfx { | 16 namespace gfx { |
| 17 class Insets; | 17 class Insets; |
| 18 } | 18 } |
| 19 | 19 |
| 20 // GridLayout is a LayoutManager that positions child Views in a grid. You | 20 // GridLayout is a LayoutManager that positions child Views in a grid. You |
| 21 // define the structure of the Grid first, then add the Views. | 21 // define the structure of the Grid first, then add the Views. |
| 22 // The following creates a trivial grid with two columns separated by | 22 // The following creates a trivial grid with two columns separated by |
| 23 // a column with padding: | 23 // a column with padding: |
| 24 // ColumnSet* columns = layout->AddColumnSet(0); // Give this column an | 24 // ColumnSet* columns = layout->AddColumnSet(0); // Give this column an |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 // The master column of those columns that are linked. See Column | 363 // The master column of those columns that are linked. See Column |
| 364 // for a description of what the master column is. | 364 // for a description of what the master column is. |
| 365 std::vector<Column*> master_columns_; | 365 std::vector<Column*> master_columns_; |
| 366 | 366 |
| 367 DISALLOW_COPY_AND_ASSIGN(ColumnSet); | 367 DISALLOW_COPY_AND_ASSIGN(ColumnSet); |
| 368 }; | 368 }; |
| 369 | 369 |
| 370 } // namespace views | 370 } // namespace views |
| 371 | 371 |
| 372 #endif // UI_VIEWS_LAYOUT_GRID_LAYOUT_H_ | 372 #endif // UI_VIEWS_LAYOUT_GRID_LAYOUT_H_ |
| OLD | NEW |