Build fix: cannot use framework-style include for ProgIDMacros.h,
[WebKit-https.git] / WebKit / win / ForEachCoClass.h
index ca7f589954c2317c6d7912f36c14aaff5cf1b8e8..e60a1ff95f1e143945e10a387bb1d5c8d2519a69 100644 (file)
 #ifndef ForEachCoClass_h
 #define ForEachCoClass_h
 
+#include "ProgIDMacros.h"
+
 #define FOR_EACH_COCLASS(macro) \
     macro(CFDictionaryPropertyBag) \
     macro(WebCache) \
-    macro(WebDebugProgram) \
+    macro(WebDatabaseManager) \
     macro(WebDownload) \
     macro(WebError) \
     macro(WebHistory) \
@@ -44,6 +46,7 @@
     macro(WebNotificationCenter) \
     macro(WebPreferences) \
     macro(WebScrollBar) \
+    macro(WebScriptDebugServer) \
     macro(WebTextRenderer) \
     macro(WebURLCredential) \
     macro(WebURLProtectionSpace) \
     macro(WebView) \
     // end of macro
 
+#define WEBKITCLASS_MEMBER(cls) cls##Class,
+enum WebKitClass {
+    FOR_EACH_COCLASS(WEBKITCLASS_MEMBER)
+    WebKitClassSentinel
+};
+#undef WEBKITCLASS_MEMBER
+
+#define PRODUCTION_PROGID(cls) VERSION_INDEPENDENT_PRODUCTION_PROGID(cls),
+static LPCOLESTR productionProgIDs[WebKitClassSentinel] = {
+    FOR_EACH_COCLASS(PRODUCTION_PROGID)
+};
+#undef PRODUCTION_PROGID
+
+#define OPENSOURCE_PROGID(cls) VERSION_INDEPENDENT_OPENSOURCE_PROGID(cls),
+static LPCOLESTR openSourceProgIDs[WebKitClassSentinel] = {
+    FOR_EACH_COCLASS(OPENSOURCE_PROGID)
+};
+#undef OPENSOURCE_PROGID
+
+#if __PRODUCTION__
+    static LPCOLESTR* s_progIDs = productionProgIDs;
+#else
+    static LPCOLESTR* s_progIDs = openSourceProgIDs;
+#endif
+
+#define PROGID(className) progIDForClass(className##Class)
+
+void setUseOpenSourceWebKit(bool);
+LPCOLESTR progIDForClass(WebKitClass);
+
+
+
 #endif // !defined(ForEachCoClass_h)