Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Unified Diff: ui/gfx/point_conversions.h

Issue 11081007: Remove implicit flooring Scale() method from Point and Size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try -b win_rel,mac_rel,linux_rel,linux_aura Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698