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

Unified Diff: ui/message_center/views/bounded_label.h

Issue 14322007: Add line height setting to views::Label & use it for notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/message_center/views/bounded_label.h
diff --git a/ui/message_center/views/bounded_label.h b/ui/message_center/views/bounded_label.h
index 4018680b3494efc100edb67a5800a037fa49b998..c53a01649118f6f2e08b14c92bdc2d2df711dd34 100644
--- a/ui/message_center/views/bounded_label.h
+++ b/ui/message_center/views/bounded_label.h
@@ -38,9 +38,11 @@ class MESSAGE_CENTER_EXPORT BoundedLabel : public views::View {
virtual ~BoundedLabel();
void SetColors(SkColor textColor, SkColor backgroundColor);
+ void SetLineHeight(int height); // Pass in -1 for default height.
void SetLineLimit(int lines); // Pass in -1 for no limit.
- int line_limit() const { return line_limit_; }
+ int GetLineHeight() const;
+ int GetLineLimit() const;
// Pass in a -1 width to use the preferred width, a -1 limit to skip limits.
int GetLinesForWidthAndLimit(int width, int limit);

Powered by Google App Engine
This is Rietveld 408576698