Chromium Code Reviews| 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. |
|
msw
2013/04/18 03:58:52
nit: s/-1/0/ or "height <= 0"
dharcourt
2013/04/18 17:50:27
Done.
|
| 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); |