Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Unified Diff: ui/gfx/text_constants.h

Issue 1013543006: [RenderText] Adding vertical alignment options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Testing adjustment to vertical alignment test Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ui/gfx/render_text_unittest.cc ('K') | « ui/gfx/render_text_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/text_constants.h
diff --git a/ui/gfx/text_constants.h b/ui/gfx/text_constants.h
index c76adfa3a159c8a92b135c2ca45156736c547edd..986adac73e44bed6d2d02290232e8aeff33e7faa 100644
--- a/ui/gfx/text_constants.h
+++ b/ui/gfx/text_constants.h
@@ -23,6 +23,13 @@ enum HorizontalAlignment {
ALIGN_TO_HEAD, // Align the text to its first strong character's direction.
};
+// Vertical text alignment modes.
+enum VerticalAlignment {
+ VALIGN_TOP = 0, // Align the text's top edge with that of its display area.
msw 2015/03/30 19:19:12 nit: one fewer space before the comments on this l
dschuyler 2015/03/31 18:38:14 git cl format insists on adding the spaces back.
msw 2015/04/01 15:07:17 I'd force the spacing tighter (like many other enu
+ VALIGN_MIDDLE, // Align the text's middle with that of its display area.
+ VALIGN_BOTTOM, // Align the text's bottom edge with that of its display area.
+};
+
// The directionality modes used to determine the base text direction.
enum DirectionalityMode {
DIRECTIONALITY_FROM_TEXT = 0, // Use the first strong character's direction.
« ui/gfx/render_text_unittest.cc ('K') | « ui/gfx/render_text_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698