diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-03 00:50:46 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-03 00:50:46 +0000 |
commit | 5a74c76ebf61c83ce077c9c80fcee7c494216523 (patch) | |
tree | 353d6caf4a978b75677221ea0bda35a29115ab45 /ash/wm/window_resizer.cc | |
parent | 9714ed638fe3391a610e58ff3fe618561ce9432a (diff) | |
download | chromium_src-5a74c76ebf61c83ce077c9c80fcee7c494216523.zip chromium_src-5a74c76ebf61c83ce077c9c80fcee7c494216523.tar.gz chromium_src-5a74c76ebf61c83ce077c9c80fcee7c494216523.tar.bz2 |
ui: Add IsExpressibleAsRect() method to RectF
This method reports if the RectF can be safely converted to an
integer Rect. When it is false, some dimension of the RectF is
outside the bounds of what an integer can represent, and
converting it to a Rect will require clamping.
Tests:
ui_unittests:RectTest.IsExpressibleAsRect
TBR=sky
BUG=147395
Relanding: https://codereview.chromium.org/11364054/
Review URL: https://codereview.chromium.org/11359052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165819 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/window_resizer.cc')
0 files changed, 0 insertions, 0 deletions