Chromium Code Reviews| Index: ui/views/layout/grid_layout.h |
| diff --git a/ui/views/layout/grid_layout.h b/ui/views/layout/grid_layout.h |
| index e6a1ee35496efa63e064a1b845fde3f87f061fa0..020f0be3c0c62f4986012b12837afb6bcecc3005 100644 |
| --- a/ui/views/layout/grid_layout.h |
| +++ b/ui/views/layout/grid_layout.h |
| @@ -300,6 +300,11 @@ class VIEWS_EXPORT ColumnSet { |
| // LinkColumnSizes(0, 1, -1); |
| void LinkColumnSizes(int first, ...); |
| + // When sizing linked columns, columns wider than |size_limit| are ignored. |
| + void set_linked_column_size_limit(int size_limit) { |
| + linked_column_size_limit_ = size_limit; |
| + } |
| + |
| // ID of this ColumnSet. |
| int id() const { return id_; } |
| @@ -355,6 +360,9 @@ class VIEWS_EXPORT ColumnSet { |
| // ID for this columnset. |
| const int id_; |
| + // Threshold to ignore a column when unifying same sized columns. |
|
Peter Kasting
2017/03/07 02:50:37
Nit: "Columns wider than this limit will be ignore
tapted
2017/03/07 12:06:41
Done.
Peter Kasting
2017/03/07 21:22:49
SGTM
|
| + int linked_column_size_limit_; |
| + |
| // The columns. |
| std::vector<std::unique_ptr<Column>> columns_; |