Chromium Code Reviews| 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. |