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

Unified Diff: ui/gfx/text_elider.h

Issue 381953002: New avatar button: Consolidate text elision between Mac and Win/Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use TruncateString 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
Index: ui/gfx/text_elider.h
diff --git a/ui/gfx/text_elider.h b/ui/gfx/text_elider.h
index a416fda779eb37e42ff32d2dbadb625ffcc62a3c..cd898c1853d965ba6ed2d3d7be24d42e60318324 100644
--- a/ui/gfx/text_elider.h
+++ b/ui/gfx/text_elider.h
@@ -158,7 +158,8 @@ GFX_EXPORT int ElideRectangleText(const base::string16& text,
// The supplied string is returned if the string has length characters or
// less.
GFX_EXPORT base::string16 TruncateString(const base::string16& string,
- size_t length);
+ size_t length,
+ bool only_at_word_breaks);
msw 2014/07/17 17:18:35 nit: maybe use gfx::BreakType or base::i18n::Break
Marc Treib 2014/07/18 10:05:09 Hm, base::i18n::BreakIterator::BreakType has lots
msw 2014/07/18 19:21:48 gfx::BreakType seems appropriate for now. When my
Marc Treib 2014/07/21 09:03:00 Done.
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698