| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_COCOA_AUTOFILL_SIMPLE_GRID_LAYOUT_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_SIMPLE_GRID_LAYOUT_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_SIMPLE_GRID_LAYOUT_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_SIMPLE_GRID_LAYOUT_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include <memory> |
| 11 |
| 11 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
| 12 | 13 |
| 13 class Column; | 14 class Column; |
| 14 class ColumnSet; | 15 class ColumnSet; |
| 15 class Row; | 16 class Row; |
| 16 class ViewState; | 17 class ViewState; |
| 17 | 18 |
| 18 // SimpleGridLayout is a layout manager that positions child views in a grid. | 19 // SimpleGridLayout is a layout manager that positions child views in a grid. |
| 19 // Each row has exactly one ColumnSet, ColumnSets can be shared between rows. | 20 // Each row has exactly one ColumnSet, ColumnSets can be shared between rows. |
| 20 // See ui/views/layout/grid_layout.h for more details - this is a very | 21 // See ui/views/layout/grid_layout.h for more details - this is a very |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 132 |
| 132 private: | 133 private: |
| 133 float CalculateRemainingWidth(float width); | 134 float CalculateRemainingWidth(float width); |
| 134 void DistributeRemainingWidth(float width); | 135 void DistributeRemainingWidth(float width); |
| 135 | 136 |
| 136 ScopedVector<Column> columns_; | 137 ScopedVector<Column> columns_; |
| 137 int id_; | 138 int id_; |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_SIMPLE_GRID_LAYOUT_H_ | 141 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_SIMPLE_GRID_LAYOUT_H_ |
| OLD | NEW |