Index: ui/gfx/size_conversions.h |
diff --git a/ui/gfx/rect_conversions.h b/ui/gfx/size_conversions.h |
similarity index 62% |
copy from ui/gfx/rect_conversions.h |
copy to ui/gfx/size_conversions.h |
index ddec0b2a321988976b415a759b7e99ce72b5e7d7..f0cda04ee8a214cd298b1b85e834a5b26d11ec26 100644 |
--- a/ui/gfx/rect_conversions.h |
+++ b/ui/gfx/size_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_SIZE_CONVERSIONS_H_ |
+#define UI_GFX_SIZE_CONVERSIONS_H_ |
-#include "ui/gfx/rect.h" |
-#include "ui/gfx/rect_f.h" |
+#include "ui/gfx/size.h" |
+#include "ui/gfx/size_f.h" |
namespace gfx { |
// Returns the smallest Rect that encloses the given RectF. |
sky
2012/10/08 15:45:40
Rect->Size (same on 16)
|
-UI_EXPORT Rect ToEnclosingRect(const RectF& rect); |
+UI_EXPORT Size ToFlooredSize(const SizeF& rect); |
// Returns the largest Rect that is enclosed by the given RectF. |
-UI_EXPORT Rect ToEnclosedRect(const RectF& rect); |
+UI_EXPORT Size ToCeiledSize(const SizeF& rect); |
} // namespace gfx |