diff options
Diffstat (limited to 'views/grid_layout.cc')
-rw-r--r-- | views/grid_layout.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/views/grid_layout.cc b/views/grid_layout.cc index d35f42f..9b44372 100644 --- a/views/grid_layout.cc +++ b/views/grid_layout.cc @@ -7,6 +7,7 @@ #include <algorithm> #include "base/logging.h" +#include "app/gfx/insets.h" #include "views/standard_layout.h" #include "views/view.h" @@ -690,6 +691,10 @@ void GridLayout::SetInsets(int top, int left, int bottom, int right) { right_inset_ = right; } +void GridLayout::SetInsets(const gfx::Insets& insets) { + SetInsets(insets.top(), insets.left(), insets.bottom(), insets.right()); +} + ColumnSet* GridLayout::AddColumnSet(int id) { DCHECK(GetColumnSet(id) == NULL); ColumnSet* column_set = new ColumnSet(id); |