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

Unified Diff: ui/gfx/rect.h

Issue 7977025: aura: Make 'ui' buildable without gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 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 | « ui/gfx/platform_font_pango.cc ('k') | ui/gfx/rect.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/rect.h
diff --git a/ui/gfx/rect.h b/ui/gfx/rect.h
index f47456fedc5d9d2623c72c44db0db078fc6151d0..21abf40ac454a7d4a71cfd7a03bcc71cc456412b 100644
--- a/ui/gfx/rect.h
+++ b/ui/gfx/rect.h
@@ -20,7 +20,7 @@
#if defined(OS_WIN)
typedef struct tagRECT RECT;
-#elif defined(USE_X11)
+#elif defined(TOOLKIT_USES_GTK)
typedef struct _GdkRectangle GdkRectangle;
#endif
@@ -41,7 +41,7 @@ class UI_EXPORT Rect {
explicit Rect(const RECT& r);
#elif defined(OS_MACOSX)
explicit Rect(const CGRect& r);
-#elif defined(USE_X11)
+#elif defined(TOOLKIT_USES_GTK)
explicit Rect(const GdkRectangle& r);
#endif
#if defined(USE_WAYLAND)
@@ -56,7 +56,7 @@ class UI_EXPORT Rect {
Rect& operator=(const RECT& r);
#elif defined(OS_MACOSX)
Rect& operator=(const CGRect& r);
-#elif defined(USE_X11)
+#elif defined(TOOLKIT_USES_GTK)
Rect& operator=(const GdkRectangle& r);
#endif
#if defined(USE_WAYLAND)
@@ -123,7 +123,7 @@ class UI_EXPORT Rect {
#if defined(OS_WIN)
// Construct an equivalent Win32 RECT object.
RECT ToRECT() const;
-#elif defined(USE_X11)
+#elif defined(TOOLKIT_USES_GTK)
GdkRectangle ToGdkRectangle() const;
#elif defined(OS_MACOSX)
// Construct an equivalent CoreGraphics object.
« no previous file with comments | « ui/gfx/platform_font_pango.cc ('k') | ui/gfx/rect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698