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

Unified Diff: ui/gfx/text_constants.h

Issue 1015533016: Move allow_character_break property to RenderText. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: line width for truncated words 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
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | ui/gfx/text_elider.h » ('j') | 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..93450ea56070d6957379e15733ac24ab14c2d131 100644
--- a/ui/gfx/text_constants.h
+++ b/ui/gfx/text_constants.h
@@ -15,6 +15,16 @@ enum BreakType {
LINE_BREAK, // Stop cursor movement on line ends as shown on screen.
};
+// Specifies the word wrapping behavior when a word would exceed the available
+// display width. All words that are too wide will be put on a new line, and
+// then:
+enum WordWrapBehavior {
+ IGNORE_LONG_WORDS, // Overflowing word text is left on that line.
+ TRUNCATE_LONG_WORDS, // Overflowing word text is truncated.
+ ELIDE_LONG_WORDS, // Overflowing word text is elided at the ellipsis.
+ WRAP_LONG_WORDS, // Overflowing word text is wrapped over multiple lines.
+};
+
// Horizontal text alignment modes.
enum HorizontalAlignment {
ALIGN_LEFT = 0, // Align the text's left edge with that of its display area.
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | ui/gfx/text_elider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698