Index: ui/views/controls/styled_label.h |
diff --git a/ui/views/controls/styled_label.h b/ui/views/controls/styled_label.h |
index 3b683d2e4903e992c1ac7be3438df91db6924d37..80764ed562bb3e0fd1fa67917b30c1189d45dae5 100644 |
--- a/ui/views/controls/styled_label.h |
+++ b/ui/views/controls/styled_label.h |
@@ -31,8 +31,13 @@ class VIEWS_EXPORT StyledLabel : public View, public LinkListener { |
// Marks the given range within |text_| as a link. |
void AddLink(const ui::Range& range); |
+ // Resizes the label to the given width and height big enough to display the |
+ // label text. |
+ void SizeToFit(int width); |
+ |
// View implementation: |
virtual gfx::Insets GetInsets() const OVERRIDE; |
+ virtual gfx::Size GetPreferredSize() OVERRIDE; |
virtual int GetHeightForWidth(int w) OVERRIDE; |
virtual void Layout() OVERRIDE; |