DescriptionNew avatar button: Consolidate text elision between Mac and Win/Linux
This is a cleanup, as discussed in the comments of https://codereview.chromium.org/287103004/
This turned out to require extending gfx::TruncateString with an extra BreakType parameter; it now supports breaking within words as well as at word boundaries. All call sites have been updated accordingly.
BUG=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284933
Patch Set 1 #
Total comments: 4
Patch Set 2 : use TruncateString #
Total comments: 6
Patch Set 3 : nit #Patch Set 4 : use gfx::BreakType #
Total comments: 38
Patch Set 5 : nits #
Total comments: 4
Patch Set 6 : nits2 #
Total comments: 2
Patch Set 7 : nits3 (and rebase) #Patch Set 8 : fix #Messages
Total messages: 35 (0 generated)
|