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

Unified Diff: ui/gfx/size_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/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
« ui/gfx/point_conversions.h ('K') | « ui/gfx/size_base.h ('k') | ui/gfx/size_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698