| Index: ui/gfx/render_text.h
|
| diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
|
| index 1b33b3c99ab207e2c31763931209015ba573bb8b..c21a15fe722f6fa87c96295e3121a479ea74e191 100644
|
| --- a/ui/gfx/render_text.h
|
| +++ b/ui/gfx/render_text.h
|
| @@ -214,6 +214,9 @@ class GFX_EXPORT RenderText {
|
| }
|
| void SetHorizontalAlignment(HorizontalAlignment alignment);
|
|
|
| + VerticalAlignment vertical_alignment() const { return vertical_alignment_; }
|
| + void SetVerticalAlignment(VerticalAlignment alignment);
|
| +
|
| const FontList& font_list() const { return font_list_; }
|
| void SetFontList(const FontList& font_list);
|
|
|
| @@ -644,6 +647,7 @@ class GFX_EXPORT RenderText {
|
| FRIEND_TEST_ALL_PREFIXES(RenderTextTest, BreakRunsByUnicodeBlocks);
|
| FRIEND_TEST_ALL_PREFIXES(RenderTextTest, PangoAttributes);
|
| FRIEND_TEST_ALL_PREFIXES(RenderTextTest, StringFitsOwnWidth);
|
| + FRIEND_TEST_ALL_PREFIXES(RenderTextTest, VerticalAlignment);
|
|
|
| // Set the cursor to |position|, with the caret trailing the previous
|
| // grapheme, or if there is no previous grapheme, leading the cursor position.
|
| @@ -680,6 +684,10 @@ class GFX_EXPORT RenderText {
|
| // default is to align left if the application UI is LTR and right if RTL.
|
| HorizontalAlignment horizontal_alignment_;
|
|
|
| + // Vertical alignment of the text with respect to |display_rect_|. The
|
| + // default is to vertically align middle.
|
| + VerticalAlignment vertical_alignment_;
|
| +
|
| // The text directionality mode, defaults to DIRECTIONALITY_FROM_TEXT.
|
| DirectionalityMode directionality_mode_;
|
|
|
|
|