| Index: ui/views/border.h
|
| diff --git a/ui/views/border.h b/ui/views/border.h
|
| index d30cc7ca0b00e2882b2b5288d9b058a98fa3858d..8bceb65c8ff15839a378d6a4818208d4f2dd8614 100644
|
| --- a/ui/views/border.h
|
| +++ b/ui/views/border.h
|
| @@ -73,6 +73,20 @@ class VIEWS_EXPORT Border {
|
| int right,
|
| SkColor color);
|
|
|
| + // Creates a new border that draws |border| and adds additional padding. This
|
| + // is equivalent to changing the insets of |border| without changing how or
|
| + // what it paints. Example:
|
| + //
|
| + // view->SetBorder(Border::CreatePaddedBorder(
|
| + // Border::CreateSolidBorder(1, SK_ColorRED),
|
| + // gfx::Insets(2, 0, 0, 0)));
|
| + //
|
| + // yields a single dip red border and an additional 2dip of unpainted padding
|
| + // above the view content (below the border).
|
| + static std::unique_ptr<Border> CreatePaddedBorder(
|
| + std::unique_ptr<Border> border,
|
| + const gfx::Insets& insets);
|
| +
|
| // Creates a Border from the specified Painter.
|
| // |insets| define size of an area allocated for a Border.
|
| static std::unique_ptr<Border> CreateBorderPainter(
|
|
|