summaryrefslogtreecommitdiffstats
path: root/ui/views/border.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/views/border.h')
-rw-r--r--ui/views/border.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/ui/views/border.h b/ui/views/border.h
index 053c33f..3f06f6c 100644
--- a/ui/views/border.h
+++ b/ui/views/border.h
@@ -68,9 +68,17 @@ class VIEWS_EXPORT Border {
// Renders the border for the specified view.
virtual void Paint(const View& view, gfx::Canvas* canvas) = 0;
- // Sets the specified insets to the the border insets.
+ // Returns the border insets.
virtual gfx::Insets GetInsets() const = 0;
+ // Returns the minimum size this border requires. Note that this may not be
+ // the same as the insets. For example, a Border may paint images to draw
+ // some graphical border around a view, and this would return the minimum size
+ // such that these images would not be clipped or overlapping -- but the
+ // insets may be larger or smaller, depending on how the view wanted its
+ // content laid out relative to these images.
+ virtual gfx::Size GetMinimumSize() const = 0;
+
// Manual RTTI for text buttons.
virtual TextButtonBorder* AsTextButtonBorder();
virtual const TextButtonBorder* AsTextButtonBorder() const;