Chromium Code Reviews| Index: ui/gfx/point_conversions.h |
| diff --git a/ui/gfx/rect_conversions.h b/ui/gfx/point_conversions.h |
| similarity index 62% |
| copy from ui/gfx/rect_conversions.h |
| copy to ui/gfx/point_conversions.h |
| index ddec0b2a321988976b415a759b7e99ce72b5e7d7..a57bac2b46ae69e7a55c7fbc32bb6d9ac0bd8a05 100644 |
| --- a/ui/gfx/rect_conversions.h |
| +++ b/ui/gfx/point_conversions.h |
| @@ -2,19 +2,19 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef UI_GFX_RECT_CONVERSIONS_H_ |
| -#define UI_GFX_RECT_CONVERSIONS_H_ |
| +#ifndef UI_GFX_POINT_CONVERSIONS_H_ |
| +#define UI_GFX_POINT_CONVERSIONS_H_ |
| -#include "ui/gfx/rect.h" |
| -#include "ui/gfx/rect_f.h" |
| +#include "ui/gfx/point.h" |
| +#include "ui/gfx/point_f.h" |
| namespace gfx { |
| // Returns the smallest Rect that encloses the given RectF. |
|
sky
2012/10/08 15:45:40
Rect->Point (same on 16)
danakj
2012/10/09 04:28:00
Oops, thanks!
|
| -UI_EXPORT Rect ToEnclosingRect(const RectF& rect); |
| +UI_EXPORT Point ToFlooredPoint(const PointF& rect); |
| // Returns the largest Rect that is enclosed by the given RectF. |
| -UI_EXPORT Rect ToEnclosedRect(const RectF& rect); |
| +UI_EXPORT Point ToCeiledPoint(const PointF& rect); |
| } // namespace gfx |