[ui/ios] Add helper methods for getting the bounding size of some text.
commit4981664e4c0407a7fb7443733f989991e3f883a6
authorlliabraa <lliabraa@chromium.org>
Fri, 7 Nov 2014 15:20:32 +0000 (7 07:20 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 7 Nov 2014 15:20:48 +0000 (7 15:20 +0000)
treed26ce8063596bf52e523032fb19445bcc46748a5
parent5b86257eca0f11487af5ea5696f89b32181783d4
[ui/ios] Add helper methods for getting the bounding size of some text.

These helpers are meant to ease the transition from the deprecated
|sizeWithFont:constrainedToSize:| methods. They'll also help reduce
boilerplate compared to the iOS method
|boundingRectWithSize:options:attributes:context:|

BUG=364419

Review URL: https://codereview.chromium.org/704283002

Cr-Commit-Position: refs/heads/master@{#303237}
ui/ios/NSString+CrStringDrawing.h
ui/ios/NSString+CrStringDrawing.mm
ui/ios/NSString+CrStringDrawing_unittest.mm