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 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
102 explicit GridLayout(View* host); | 102 explicit GridLayout(View* host); |
103 virtual ~GridLayout(); | 103 virtual ~GridLayout(); |
104 | 104 |
105 // Creates a GridLayout with kPanel*Margin insets. | 105 // Creates a GridLayout with kPanel*Margin insets. |
106 static GridLayout* CreatePanel(View* host); | 106 static GridLayout* CreatePanel(View* host); |
107 | 107 |
108 // Sets the insets. All views are placed relative to these offsets. | 108 // Sets the insets. All views are placed relative to these offsets. |
109 void SetInsets(int top, int left, int bottom, int right); | 109 void SetInsets(int top, int left, int bottom, int right); |
110 void SetInsets(const gfx::Insets& insets); | 110 void SetInsets(const gfx::Insets& insets); |
111 | 111 |
112 const gfx::Insets& insets() { return insets_; } | |
msw
2013/04/16 01:58:24
I didn't see where this is used; please remove if
Evan Stade
2013/04/16 19:58:25
oh yea. Not used any more. Removed.
| |
113 | |
112 // Creates a new column set with the specified id and returns it. | 114 // Creates a new column set with the specified id and returns it. |
113 // The id is later used when starting a new row. | 115 // The id is later used when starting a new row. |
114 // GridLayout takes ownership of the ColumnSet and will delete it when | 116 // GridLayout takes ownership of the ColumnSet and will delete it when |
115 // the GridLayout is deleted. | 117 // the GridLayout is deleted. |
116 ColumnSet* AddColumnSet(int id); | 118 ColumnSet* AddColumnSet(int id); |
117 | 119 |
118 // Returns the column set for the specified id, or NULL if one doesn't exist. | 120 // Returns the column set for the specified id, or NULL if one doesn't exist. |
119 ColumnSet* GetColumnSet(int id); | 121 ColumnSet* GetColumnSet(int id); |
120 | 122 |
121 // Adds a padding row. Padding rows typically don't have any views, and | 123 // Adds a padding row. Padding rows typically don't have any views, and |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
361 // The master column of those columns that are linked. See Column | 363 // The master column of those columns that are linked. See Column |
362 // for a description of what the master column is. | 364 // for a description of what the master column is. |
363 std::vector<Column*> master_columns_; | 365 std::vector<Column*> master_columns_; |
364 | 366 |
365 DISALLOW_COPY_AND_ASSIGN(ColumnSet); | 367 DISALLOW_COPY_AND_ASSIGN(ColumnSet); |
366 }; | 368 }; |
367 | 369 |
368 } // namespace views | 370 } // namespace views |
369 | 371 |
370 #endif // UI_VIEWS_LAYOUT_GRID_LAYOUT_H_ | 372 #endif // UI_VIEWS_LAYOUT_GRID_LAYOUT_H_ |
OLD | NEW |