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

Unified Diff: ui/gfx/geometry/rect.h

Issue 1315053003: gfx: Remove implicit conversions from gfx::Rect to gfx::RectF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | ui/gfx/geometry/rect_f.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/rect.h
diff --git a/ui/gfx/geometry/rect.h b/ui/gfx/geometry/rect.h
index 4ce85a0cfef9a25bbba39d9cb840d076a5f2eab4..9e0508d59eb8b6f009a8b35378df8a7df9b7149a 100644
--- a/ui/gfx/geometry/rect.h
+++ b/ui/gfx/geometry/rect.h
@@ -18,7 +18,6 @@
#include "base/numerics/safe_conversions.h"
#include "ui/gfx/geometry/point.h"
-#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/geometry/vector2d.h"
@@ -57,11 +56,6 @@ class GFX_EXPORT Rect {
CGRect ToCGRect() const;
#endif
- operator RectF() const {
- return RectF(static_cast<float>(x()), static_cast<float>(y()),
- static_cast<float>(width()), static_cast<float>(height()));
- }
-
int x() const { return origin_.x(); }
void set_x(int x) { origin_.set_x(x); }
« no previous file with comments | « no previous file | ui/gfx/geometry/rect_f.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698