Chromium Code Reviews| Index: ui/gfx/point_conversions.h |
| diff --git a/ui/gfx/point_conversions.h b/ui/gfx/point_conversions.h |
| index 9467a9231dcd453eadd1a11c230d2a980f8abe78..6fc042cf918f8a7bfb944c4c19eadf5b32e17cd7 100644 |
| --- a/ui/gfx/point_conversions.h |
| +++ b/ui/gfx/point_conversions.h |
| @@ -7,12 +7,17 @@ |
| #include "ui/gfx/point.h" |
| #include "ui/gfx/point_f.h" |
| +#include "ui/gfx/rect.h" |
| +#include "ui/gfx/rect_f.h" |
| namespace gfx { |
| // Returns a Point with each component from the input PointF floored. |
| UI_EXPORT Point ToFlooredPoint(const PointF& point); |
| +// Returns a Rect with each component from the input RectF floored. |
| +UI_EXPORT Rect ToFlooredRect(const RectF& rect); |
|
danakj
2013/09/05 19:10:07
not lgtm on this. See rect_conversions for the var
tdanderson
2013/09/09 22:15:39
Done.
|
| + |
| // Returns a Point with each component from the input PointF ceiled. |
| UI_EXPORT Point ToCeiledPoint(const PointF& point); |