Chromium Code Reviews| Index: ui/views/controls/styled_label.h |
| diff --git a/ui/views/controls/styled_label.h b/ui/views/controls/styled_label.h |
| index 4c599a0d438c5de58e98cd5cde3927a8ccdb7e86..b685d27c7f053e63a20e2a96b3d5ebd31471ebcb 100644 |
| --- a/ui/views/controls/styled_label.h |
| +++ b/ui/views/controls/styled_label.h |
| @@ -73,6 +73,9 @@ class VIEWS_EXPORT StyledLabel : public View, public LinkListener { |
| // a range set by AddStyleRange. |
| void SetDefaultStyle(const RangeStyleInfo& style_info); |
| + // Additional spacing between lines. |
| + void SetInterlineSpacing(int spacing_in_px); |
|
Evan Stade
2014/06/19 00:16:36
It would be more CSS-like if you made this control
Garrett Casto
2014/06/20 23:47:01
Are you saying that a value of 0 should leave no s
Evan Stade
2014/06/23 18:20:40
yes. You could always redefine 0 to be "reset to d
|
| + |
| // Sets the color of the background on which the label is drawn. This won't |
| // be explicitly drawn, but the label will force the text color to be |
| // readable over it. |
| @@ -122,6 +125,9 @@ class VIEWS_EXPORT StyledLabel : public View, public LinkListener { |
| // Fonts used to display text. Can be augmented by RangeStyleInfo. |
| gfx::FontList font_list_; |
| + // Additional spacing, in pixels, added between lines. |
| + int interline_spacing_; |
| + |
| // The default style to use for any part of the text that isn't within |
| // a range in |style_ranges_|. |
| RangeStyleInfo default_style_info_; |