summaryrefslogtreecommitdiffstats
path: root/base/gfx/rect.h
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 21:15:23 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 21:15:23 +0000
commit99304a704db0fbb0f65dea844da7422a21763d58 (patch)
tree3a58c46272d7a36e690df2040c47d028118d82b1 /base/gfx/rect.h
parent96b667d273c25e55150785848942c51f1a98851b (diff)
downloadchromium_src-99304a704db0fbb0f65dea844da7422a21763d58.zip
chromium_src-99304a704db0fbb0f65dea844da7422a21763d58.tar.gz
chromium_src-99304a704db0fbb0f65dea844da7422a21763d58.tar.bz2
get webframe_impl.cc to compile on linux
Includes changes from http://codereview.chromium.org/7244 by icefox (Torchmobile Inc.) Review URL: http://codereview.chromium.org/7319 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3366 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/rect.h')
-rw-r--r--base/gfx/rect.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/base/gfx/rect.h b/base/gfx/rect.h
index 963470a..a7a3d9c 100644
--- a/base/gfx/rect.h
+++ b/base/gfx/rect.h
@@ -17,6 +17,10 @@
#if defined(OS_WIN)
typedef struct tagRECT RECT;
+#elif defined(OS_LINUX)
+// It's wrong to hide GDK stuff behind OS_LINUX, but until we have a different
+// linux target, this is less complex.
+typedef struct _GdkRectangle GdkRectangle;
#endif
namespace gfx {
@@ -30,6 +34,8 @@ class Rect {
explicit Rect(const RECT& r);
#elif defined(OS_MACOSX)
explicit Rect(const CGRect& r);
+#elif defined(OS_LINUX)
+ explicit Rect(const GdkRectangle& r);
#endif
Rect(const gfx::Point& origin, const gfx::Size& size);
@@ -39,6 +45,8 @@ class Rect {
Rect& operator=(const RECT& r);
#elif defined(OS_MACOSX)
Rect& operator=(const CGRect& r);
+#elif defined(OS_LINUX)
+ Rect& operator=(const GdkRectangle& r);
#endif
int x() const { return origin_.x(); }