| 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..61dcc1fe76eb525394d281e00bb13f935c4e271b 100644
|
| --- a/ui/views/controls/styled_label.h
|
| +++ b/ui/views/controls/styled_label.h
|
| @@ -73,6 +73,10 @@ class VIEWS_EXPORT StyledLabel : public View, public LinkListener {
|
| // a range set by AddStyleRange.
|
| void SetDefaultStyle(const RangeStyleInfo& style_info);
|
|
|
| + // Sets multiplier for line height. Multipliers < 1.0 will be ignored. Text
|
| + // will be centered in the available space.
|
| + void SetLineHeightMultiplier(double multiplier);
|
| +
|
| // 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.
|
| @@ -116,12 +120,23 @@ class VIEWS_EXPORT StyledLabel : public View, public LinkListener {
|
| // The return value is the necessary size.
|
| gfx::Size CalculateAndDoLayout(int width, bool dry_run);
|
|
|
| + // Returns the line height, either default or user specified.
|
| + int GetLineHeight() const;
|
| +
|
| + // Returns the vetical offset for a given line. This is necessary to
|
| + // vertically center text when a user specifies a line height great than the
|
| + // default.
|
| + int GetOffsetForLine(int line) const;
|
| +
|
| // The text to display.
|
| base::string16 text_;
|
|
|
| // Fonts used to display text. Can be augmented by RangeStyleInfo.
|
| gfx::FontList font_list_;
|
|
|
| + // Line height multipler.
|
| + double line_height_multiplier_;
|
| +
|
| // The default style to use for any part of the text that isn't within
|
| // a range in |style_ranges_|.
|
| RangeStyleInfo default_style_info_;
|
|
|