Index: ui/views/controls/button/text_button.h |
=================================================================== |
--- ui/views/controls/button/text_button.h (revision 236640) |
+++ ui/views/controls/button/text_button.h (working copy) |
@@ -31,6 +31,7 @@ |
// Border: |
virtual gfx::Insets GetInsets() const OVERRIDE; |
+ virtual gfx::Size GetMinimumSize() const OVERRIDE; |
private: |
// Border: |
@@ -62,6 +63,7 @@ |
private: |
// TextButtonBorder: |
virtual void Paint(const View& view, gfx::Canvas* canvas) OVERRIDE; |
+ virtual gfx::Size GetMinimumSize() const OVERRIDE; |
scoped_ptr<Painter> normal_painter_; |
scoped_ptr<Painter> hot_painter_; |
@@ -83,6 +85,8 @@ |
// TextButtonBorder: |
virtual void Paint(const View& view, gfx::Canvas* canvas) OVERRIDE; |
+ // We don't override GetMinimumSize(), since there's no easy way to calculate |
+ // the minimum size required by the various theme components. |
private: |
// The delegate the controls the appearance of this border. |