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

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: test fix 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 c76adfa3a159c8a92b135c2ca45156736c547edd..2335ede1e68a5854fb88e25401fbb972202245cb 100644
--- a/ui/gfx/text_constants.h
+++ b/ui/gfx/text_constants.h
@@ -15,6 +15,26 @@ enum BreakType {
LINE_BREAK, // Stop cursor movement on line ends as shown on screen.
};
+// Specifies the word wrapping behavior of |ElideRectangleText()| when a word
msw 2015/03/26 19:36:30 nit: Consider revising the comments like this: //
Jun Mukai 2015/03/26 22:47:39 Done.
+// would exceed the available width.
+enum WordWrapBehavior {
+ // Words that are too wide will be put on a new line, but will not be
+ // truncated or elided.
+ IGNORE_LONG_WORDS,
+
+ // Words that are too wide will be put on a new line and will be truncated to
+ // the available width.
+ TRUNCATE_LONG_WORDS,
+
+ // Words that are too wide will be put on a new line and will be elided to the
+ // available width.
+ ELIDE_LONG_WORDS,
+
+ // Words that are too wide will be put on a new line and will be wrapped over
+ // multiple lines.
+ WRAP_LONG_WORDS,
+};
+
// Horizontal text alignment modes.
enum HorizontalAlignment {
ALIGN_LEFT = 0, // Align the text's left edge with that of its display area.

Powered by Google App Engine
This is Rietveld 408576698