| Index: ui/base/text/text_elider.h
|
| diff --git a/ui/base/text/text_elider.h b/ui/base/text/text_elider.h
|
| index fe2a141eba89dbf710485a943f9dd19b6f159c1e..eb4f7a4b1e989985b0c196785a4df25111104a98 100644
|
| --- a/ui/base/text/text_elider.h
|
| +++ b/ui/base/text/text_elider.h
|
| @@ -119,6 +119,12 @@ UI_EXPORT bool ElideRectangleString(const string16& input, size_t max_rows,
|
| size_t max_cols, bool strict,
|
| string16* output);
|
|
|
| +// Truncates the string to length characters. This breaks the string at
|
| +// the first word break before length, adding the horizontal ellipsis
|
| +// character (unicode character 0x2026) to render ...
|
| +// The supplied string is returned if the string has length characters or
|
| +// less.
|
| +UI_EXPORT string16 TruncateString(const string16& string, size_t length);
|
|
|
| } // namespace ui
|
|
|
|
|