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

Unified Diff: ui/gfx/text_constants.h

Issue 354963003: Move gfx::ElideText functionality to RenderText. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and rebase. Created 6 years, 5 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.cc » ('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 47c91cf5f1454f26d308b99a82756c1d735d71d0..82f2a3b7061386b425c825480db256fe8c9ca446 100644
--- a/ui/gfx/text_constants.h
+++ b/ui/gfx/text_constants.h
@@ -44,7 +44,8 @@ enum TextStyle {
// Elision behaviors of text that exceeds constrained dimensions.
enum ElideBehavior {
- TRUNCATE = 0, // Do not elide or fade; the text may be truncated at the end.
+ NO_ELIDE = 0, // Do not modify the text, it may overflow its available bounds.
+ TRUNCATE, // Do not elide or fade, just truncate at the end of the string.
ELIDE_HEAD, // Add an ellipsis at the start of the string.
ELIDE_MIDDLE, // Add an ellipsis in the middle of the string.
ELIDE_TAIL, // Add an ellipsis at the end of the string.
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | ui/gfx/text_elider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698