Chromium Code Reviews| Index: apps/size_constraints.h |
| diff --git a/apps/size_constraints.h b/apps/size_constraints.h |
| index 1af269208dea9ef8116652f6df757c2068fe8a9e..18c99bb0a5236f50a61f11c6ee12be8e82bd7bbb 100644 |
| --- a/apps/size_constraints.h |
| +++ b/apps/size_constraints.h |
| @@ -6,6 +6,7 @@ |
| #define APPS_SIZE_CONSTRAINTS_H_ |
| #include "ui/gfx/geometry/size.h" |
| +#include "ui/gfx/insets.h" |
|
tapted
2014/03/05 03:14:03
nit: since it's not a member, this can be forward-
|
| namespace apps { |
| @@ -19,6 +20,10 @@ class SizeConstraints { |
| SizeConstraints(const gfx::Size& min_size, const gfx::Size& max_size); |
| ~SizeConstraints(); |
| + // Applies frame insets to a size constraint. |
| + static gfx::Size InsetConstraints(const gfx::Size& size_constraints, |
| + const gfx::Insets& frame_insets); |
| + |
| // Returns the bounds with its size clamped to the min/max size. |
| gfx::Size ClampSize(gfx::Size size) const; |