diff options
author | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-05 18:04:07 +0000 |
---|---|---|
committer | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-05 18:04:07 +0000 |
commit | 66d3a8e27c79e8d8cf6f3db37f2c20226b71c7d8 (patch) | |
tree | dd1744434e0bf229fdf63fd46c220d742cf19a60 /base/gfx/point.h | |
parent | 4d562a7e2538a1396a4dbeae66aea33f4f4afcd3 (diff) | |
download | chromium_src-66d3a8e27c79e8d8cf6f3db37f2c20226b71c7d8.zip chromium_src-66d3a8e27c79e8d8cf6f3db37f2c20226b71c7d8.tar.gz chromium_src-66d3a8e27c79e8d8cf6f3db37f2c20226b71c7d8.tar.bz2 |
Fix basic geometric types.
Review URL: http://chrome-reviews.prom.corp.google.com/1106
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@381 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/point.h')
-rw-r--r-- | base/gfx/point.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/base/gfx/point.h b/base/gfx/point.h index 3e09a81..1a41031 100644 --- a/base/gfx/point.h +++ b/base/gfx/point.h @@ -34,7 +34,11 @@ #include <iostream> #endif +#if defined(OS_WIN) typedef struct tagPOINT POINT; +#elif defined(OS_MACOSX) +#import <ApplicationServices/ApplicationServices.h> +#endif namespace gfx { @@ -45,7 +49,11 @@ class Point { public: Point(); Point(int x, int y); +#if defined(OS_WIN) explicit Point(const POINT& point); +#elif defined(OS_MACOSX) + explicit Point(const CGPoint& point); +#endif ~Point() {} @@ -68,7 +76,11 @@ class Point { return !(*this == rhs); } +#if defined(OS_WIN) POINT ToPOINT() const; +#elif defined(OS_MACOSX) + CGPoint ToCGPoint() const; +#endif private: int x_; |