| 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(); }
|
|
|