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

Unified Diff: base/gfx/rect.h

Issue 7244: Linux build fixes for webframe_imple.cc (Closed)
Patch Set: Linux build fixes for webframe_imple.cc Created 12 years, 2 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
« no previous file with comments | « base/gfx/bitmap_platform_device_linux.cc ('k') | base/gfx/rect.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/rect.h
diff --git a/base/gfx/rect.h b/base/gfx/rect.h
index 2f1a49833f6de5aeef9e429fd1922a61b770e922..2be122f7bb03392997549aa37a9dcfe8176ae72b 100644
--- a/base/gfx/rect.h
+++ b/base/gfx/rect.h
@@ -17,6 +17,8 @@
#if defined(OS_WIN)
typedef struct tagRECT RECT;
+#elif defined(OS_LINUX)
+typedef struct _GdkRectangle GdkRectangle;
#endif
namespace gfx {
@@ -30,6 +32,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 +43,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(); }
« no previous file with comments | « base/gfx/bitmap_platform_device_linux.cc ('k') | base/gfx/rect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698