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

Unified Diff: ui/gfx/point.cc

Issue 10993094: Make adding and subtracting gfx:: point types simpler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove some patch noise Created 8 years, 3 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.cc
diff --git a/ui/gfx/point.cc b/ui/gfx/point.cc
index 322413e9da1d874e42452d4ac3c24a46c7695ed1..c3d1bfe6ec22f1f2843a0668186d8927a6b417e8 100644
--- a/ui/gfx/point.cc
+++ b/ui/gfx/point.cc
@@ -20,6 +20,10 @@ Point::Point() : PointBase<Point, int>(0, 0) {
Point::Point(int x, int y) : PointBase<Point, int>(x, y) {
}
+Point::Point(const Point& other)
+ : PointBase<Point, int>(other.x(), other.y()) {
+}
+
#if defined(OS_WIN)
Point::Point(DWORD point) : PointBase<Point, int>(0, 0){
POINTS points = MAKEPOINTS(point);

Powered by Google App Engine
This is Rietveld 408576698