| Index: ui/gfx/render_text.h
|
| diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
|
| index fe70f4761beed7b7117b96605d9803a41d8906e3..1127e10bdc3dd0940a707b497fd386398d4bed9a 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);
|
|
|
| @@ -643,6 +646,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, VerticalAlignement);
|
|
|
| // Set the cursor to |position|, with the caret trailing the previous
|
| // grapheme, or if there is no previous grapheme, leading the cursor position.
|
| @@ -679,6 +683,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_;
|
|
|
|
|