summaryrefslogtreecommitdiffstats
path: root/base/gfx/size.h
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-06 20:38:29 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-06 20:38:29 +0000
commit1924d1048439d9990701a28f8709e01c21a08197 (patch)
tree5557c8c94257ea22ad69a36b6800a9d38a463a4f /base/gfx/size.h
parent74873f0b403a944de45c4abb2cd6c8ed5a5f4783 (diff)
downloadchromium_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/size.h')
-rw-r--r--base/gfx/size.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/base/gfx/size.h b/base/gfx/size.h
index cba2e51..c719c2e 100644
--- a/base/gfx/size.h
+++ b/base/gfx/size.h
@@ -30,11 +30,17 @@
#ifndef BASE_GFX_SIZE_H__
#define BASE_GFX_SIZE_H__
+#include "build/build_config.h"
+
#ifdef UNIT_TEST
#include <iostream>
#endif
+#if defined(OS_WIN)
typedef struct tagSIZE SIZE;
+#elif defined(OS_MACOSX)
+#include <ApplicationServices/ApplicationServices.h>
+#endif
namespace gfx {
@@ -71,7 +77,11 @@ class Size {
return !width_ && !height_;
}
+#if defined(OS_WIN)
SIZE ToSIZE() const;
+#elif defined(OS_MACOSX)
+ CGSize ToCGSize() const;
+#endif
private:
int width_;