| Index: ui/gfx/ios/NSString+CrStringDrawing.h
|
| diff --git a/ui/gfx/ios/NSString+CrStringDrawing.h b/ui/gfx/ios/NSString+CrStringDrawing.h
|
| index 10916e9ee3dc675a97af449dd23cb99c6ffeb882..3c766ca09d6188ab1fbe6b059bcb55cf08bdda89 100644
|
| --- a/ui/gfx/ios/NSString+CrStringDrawing.h
|
| +++ b/ui/gfx/ios/NSString+CrStringDrawing.h
|
| @@ -50,6 +50,16 @@
|
| // sizeWithAttributes: (crbug.com/364419).
|
| - (CGSize)cr_sizeWithFont:(UIFont*)font;
|
|
|
| +// If |index| is 0, returns an empty string.
|
| +// If |index| is >= than self.length, returns self.
|
| +// Otherwise, returns string cut to have |index| characters with an
|
| +// ellipsis at the end.
|
| +- (NSString*)cr_stringByCuttingToIndex:(NSUInteger)index;
|
| +
|
| +// Returns an elided version of string that fits in |bounds|.
|
| +// System font of Label size is used for determining the string drawing size.
|
| +- (NSString*)cr_stringByElidingToFitSize:(CGSize)bounds;
|
| +
|
| @end
|
|
|
| #endif // UI_GFX_IOS_NSSTRING_CR_STRING_DRAWING_H_
|
|
|