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

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

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-event: mandol_line Created 5 years, 1 month 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 | « ui/events/test/events_test_utils.h ('k') | ui/gfx/geometry/point.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/point.h
diff --git a/ui/gfx/geometry/point.h b/ui/gfx/geometry/point.h
index 1dcf1d62c7af0424a690ce4224e747457336a7f3..d3be2ac8b0851bcedd712ab61d631a8b911edb1c 100644
--- a/ui/gfx/geometry/point.h
+++ b/ui/gfx/geometry/point.h
@@ -8,7 +8,6 @@
#include <iosfwd>
#include <string>
-#include "ui/gfx/geometry/point_f.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/gfx_export.h"
@@ -87,10 +86,6 @@ class GFX_EXPORT Point {
return (y_ == rhs.y_) ? (x_ < rhs.x_) : (y_ < rhs.y_);
}
- operator PointF() const {
- return PointF(static_cast<float>(x()), static_cast<float>(y()));
- }
-
// Returns a string representation of point.
std::string ToString() const;
« no previous file with comments | « ui/events/test/events_test_utils.h ('k') | ui/gfx/geometry/point.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698