diff options
author | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 20:38:29 +0000 |
---|---|---|
committer | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 20:38:29 +0000 |
commit | 1924d1048439d9990701a28f8709e01c21a08197 (patch) | |
tree | 5557c8c94257ea22ad69a36b6800a9d38a463a4f /base/gfx/point.h | |
parent | 74873f0b403a944de45c4abb2cd6c8ed5a5f4783 (diff) | |
download | chromium_src-1924d1048439d9990701a28f8709e01c21a08197.zip chromium_src-1924d1048439d9990701a28f8709e01c21a08197.tar.gz chromium_src-1924d1048439d9990701a28f8709e01c21a08197.tar.bz2 |
Fixing up the basic set of geometry.
Review URL: http://chrome-reviews.prom.corp.google.com/1211
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@453 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/point.h')
-rw-r--r-- | base/gfx/point.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/base/gfx/point.h b/base/gfx/point.h index 3e09a81..3acb425 100644 --- a/base/gfx/point.h +++ b/base/gfx/point.h @@ -30,11 +30,17 @@ #ifndef BASE_GFX_POINT_H__ #define BASE_GFX_POINT_H__ +#include "build/build_config.h" + #ifdef UNIT_TEST #include <iostream> #endif +#if defined(OS_WIN) typedef struct tagPOINT POINT; +#elif defined(OS_MACOSX) +#include <ApplicationServices/ApplicationServices.h> +#endif namespace gfx { @@ -45,7 +51,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 +78,11 @@ class Point { return !(*this == rhs); } +#if defined(OS_WIN) POINT ToPOINT() const; +#elif defined(OS_MACOSX) + CGPoint ToCGPoint() const; +#endif private: int x_; |