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

Unified Diff: webkit/glue/webcursor.h

Issue 8095016: Additional build fixes for aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing file 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
Index: webkit/glue/webcursor.h
diff --git a/webkit/glue/webcursor.h b/webkit/glue/webcursor.h
index 9c1a9e1f1beec840dfffe056451cc113bbfed992..02d7191efbc31f0ca0ed436ea208db3ddbc6e7b9 100644
--- a/webkit/glue/webcursor.h
+++ b/webkit/glue/webcursor.h
@@ -16,8 +16,10 @@
typedef struct HINSTANCE__* HINSTANCE;
typedef struct HICON__* HICON;
typedef HICON HCURSOR;
-#elif defined(USE_X11)
+#elif defined(TOOLKIT_USES_GTK)
typedef struct _GdkCursor GdkCursor;
+#elif defined(USES_X11)
+// TODO(davemoore) define X11 specific cursor implementation.
tony 2011/10/04 20:50:33 Nit: These empty #if defined(USES_X11) blocks are
#elif defined(OS_MACOSX)
#ifdef __OBJC__
@class NSCursor;
@@ -80,7 +82,7 @@ class WebCursor {
// APIs on it.
void InitFromExternalCursor(HCURSOR handle);
-#elif defined(USE_X11)
+#elif defined(TOOLKIT_USES_GTK)
// Return the stock GdkCursorType for this cursor, or GDK_CURSOR_IS_PIXMAP
// if it's a custom cursor. Return GDK_LAST_CURSOR to indicate that the cursor
// should be set to the system default.
@@ -90,6 +92,7 @@ class WebCursor {
// Return a new GdkCursor* for this cursor. Only valid if GetCursorType
// returns GDK_CURSOR_IS_PIXMAP.
GdkCursor* GetCustomCursor();
+#elif defined(USES_X11)
tony 2011/10/04 20:50:33 ditto
#elif defined(OS_MACOSX)
// Gets an NSCursor* for this cursor.
NSCursor* GetCursor() const;
@@ -150,11 +153,11 @@ class WebCursor {
HCURSOR external_cursor_;
// A custom cursor created from custom bitmap data by Webkit.
HCURSOR custom_cursor_;
-#endif // OS_WIN
-
-#if defined(USE_X11)
+#elif defined(TOOLKIT_USES_GTK)
// A custom cursor created that should be unref'ed from the destructor.
GdkCursor* unref_;
+#elif defined(USE_X11)
+
tony 2011/10/04 20:50:33 ditto
#endif
};

Powered by Google App Engine
This is Rietveld 408576698