Name all the GLib timeout sources
[WebKit-https.git] / Source / WebCore / platform / PlatformMenuDescription.h
index 08845cb..aa8230f 100644 (file)
 #define PlatformMenuDescription_h
 
 #if PLATFORM(MAC)
-#ifdef __OBJC__
-@class NSMutableArray;
-#else
-class NSMutableArray;
-#endif
-#elif PLATFORM(QT)
-#include <qlist.h>
+OBJC_CLASS NSMutableArray;
+#elif PLATFORM(WIN)
+#include <windows.h>
 #elif PLATFORM(GTK)
 typedef struct _GtkMenu GtkMenu;
-#elif PLATFORM(WX)
-class wxMenu;
-#elif PLATFORM(EFL)
-#include <wtf/Vector.h>
 #endif
 
 namespace WebCore {
@@ -47,19 +39,21 @@ namespace WebCore {
 #if !USE(CROSS_PLATFORM_CONTEXT_MENUS)
 #if PLATFORM(MAC)
     typedef NSMutableArray* PlatformMenuDescription;
-#elif PLATFORM(QT)
-    class ContextMenuItem;
-    typedef const QList<ContextMenuItem>* PlatformMenuDescription;
 #elif PLATFORM(GTK)
     typedef GtkMenu* PlatformMenuDescription;
-#elif PLATFORM(WX)
-    typedef wxMenu* PlatformMenuDescription;
-#elif PLATFORM(EFL)
-    class ContextMenuItem;
-    typedef Vector<ContextMenuItem>* PlatformMenuDescription;
 #else
     typedef void* PlatformMenuDescription;
 #endif
+#else
+// FIXME: When more platforms switch over, and PlatformMenuDescription
+// is not used anymore, we should rename this header to PlatformContextMenu.
+#if PLATFORM(WIN)
+    typedef HMENU PlatformContextMenu;
+    typedef MENUITEMINFO PlatformContextMenuItem;
+#else
+    typedef void* PlatformContextMenu;
+    typedef void* PlatformContextMenuItem;
+#endif
 #endif // !USE(CROSS_PLATFORM_CONTEXT_MENUS)
 
 } // namespace