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

Unified Diff: ui/gfx/text_elider.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/text_constants.h ('k') | ui/views/controls/label.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/text_elider.h
diff --git a/ui/gfx/text_elider.h b/ui/gfx/text_elider.h
index 9d77afa04f01f2437d1ce579cf4a65331c00f71d..6b24ea6fcdf9d65b226aaee5488a6d507b362fd9 100644
--- a/ui/gfx/text_elider.h
+++ b/ui/gfx/text_elider.h
@@ -109,26 +109,6 @@ GFX_EXPORT bool ElideRectangleString(const base::string16& input,
bool strict,
base::string16* output);
-// Specifies the word wrapping behavior of |ElideRectangleText()| when a word
-// 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,
-};
-
// Indicates whether the |available_pixel_width| by |available_pixel_height|
// rectangle passed to |ElideRectangleText()| had insufficient space to
// accommodate the given |text|, leading to elision or truncation.
« no previous file with comments | « ui/gfx/text_constants.h ('k') | ui/views/controls/label.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698