Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: ui/views/controls/styled_label.h

Issue 12317109: Add a dialog for getting user consent in the echo redeem flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698