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

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: Removed pixel tests on vertical alignment 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
Index: ui/gfx/text_constants.h
diff --git a/ui/gfx/text_constants.h b/ui/gfx/text_constants.h
index 93450ea56070d6957379e15733ac24ab14c2d131..08b92b6d978875e7cd69c257b43a48ab73ff3dbf 100644
--- a/ui/gfx/text_constants.h
+++ b/ui/gfx/text_constants.h
@@ -33,6 +33,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.
+ 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.

Powered by Google App Engine
This is Rietveld 408576698