2011-01-28 Anders Carlsson <andersca@apple.com>
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jan 2011 23:42:37 +0000 (23:42 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jan 2011 23:42:37 +0000 (23:42 +0000)
        Reviewed by Sam Weinig.

        Add an OBJC_CLASS macro for forward declaring an Objective-C class
        https://bugs.webkit.org/show_bug.cgi?id=53337

        * Shared/NativeWebKeyboardEvent.h:
        * Shared/PrintInfo.h:
        * UIProcess/ChunkedUpdateDrawingAreaProxy.h:
        * UIProcess/LayerBackedDrawingAreaProxy.h:
        * UIProcess/WebInspectorProxy.h:
        * UIProcess/mac/WebContextMenuProxyMac.h:
        * UIProcess/mac/WebPopupMenuProxyMac.h:
        * WebProcess/Downloads/Download.h:
        * WebProcess/Plugins/PluginProxy.h:
        * WebProcess/WebPage/LayerBackedDrawingArea.h:
        * WebProcess/WebPage/WebPage.h:
        * config.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@77007 268f45cc-cd09-0410-ab3c-d52691b4dbfc

13 files changed:
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/NativeWebKeyboardEvent.h
Source/WebKit2/Shared/PrintInfo.h
Source/WebKit2/UIProcess/ChunkedUpdateDrawingAreaProxy.h
Source/WebKit2/UIProcess/LayerBackedDrawingAreaProxy.h
Source/WebKit2/UIProcess/WebInspectorProxy.h
Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.h
Source/WebKit2/UIProcess/mac/WebPopupMenuProxyMac.h
Source/WebKit2/WebProcess/Downloads/Download.h
Source/WebKit2/WebProcess/Plugins/PluginProxy.h
Source/WebKit2/WebProcess/WebPage/LayerBackedDrawingArea.h
Source/WebKit2/WebProcess/WebPage/WebPage.h
Source/WebKit2/config.h

index de90149..b9028de 100644 (file)
@@ -2,6 +2,26 @@
 
         Reviewed by Sam Weinig.
 
+        Add an OBJC_CLASS macro for forward declaring an Objective-C class
+        https://bugs.webkit.org/show_bug.cgi?id=53337
+
+        * Shared/NativeWebKeyboardEvent.h:
+        * Shared/PrintInfo.h:
+        * UIProcess/ChunkedUpdateDrawingAreaProxy.h:
+        * UIProcess/LayerBackedDrawingAreaProxy.h:
+        * UIProcess/WebInspectorProxy.h:
+        * UIProcess/mac/WebContextMenuProxyMac.h:
+        * UIProcess/mac/WebPopupMenuProxyMac.h:
+        * WebProcess/Downloads/Download.h:
+        * WebProcess/Plugins/PluginProxy.h:
+        * WebProcess/WebPage/LayerBackedDrawingArea.h:
+        * WebProcess/WebPage/WebPage.h:
+        * config.h:
+
+2011-01-28  Anders Carlsson  <andersca@apple.com>
+
+        Reviewed by Sam Weinig.
+
         Don't put config.h in the message headers.
 
         * Scripts/webkit2/messages.py:
index 9c4e480..cdf1aef 100644 (file)
 
 #if PLATFORM(MAC)
 #include <wtf/RetainPtr.h>
-#ifdef __OBJC__
-@class NSView;
-#else
-class NSView;
-#endif
+OBJC_CLASS NSView;
 #elif PLATFORM(QT)
 #include <QKeyEvent>
 #endif
index d6ccd4a..c63c517 100644 (file)
 
 #include <wtf/Platform.h>
 
-#ifdef __OBJC__
-@class NSPrintInfo;
-#else
-class NSPrintInfo;
-#endif
+OBJC_CLASS NSPrintInfo;
 
 namespace CoreIPC {
     class ArgumentDecoder;
index 348d04f..33121b4 100644 (file)
 
 #if PLATFORM(MAC)
 #include <wtf/RetainPtr.h>
-#ifdef __OBJC__
-@class WKView;
-#else
-class WKView;
-#endif
+OBJC_CLASS WKView;
 #elif PLATFORM(QT)
 #include <QImage>
 class QGraphicsWKView;
index bbaa643..31aca5c 100644 (file)
 
 #if PLATFORM(MAC)
 #include <wtf/RetainPtr.h>
-#ifdef __OBJC__
-@class CALayer;
-@class WKView;
-#else
-class CALayer;
-class WKView;
-#endif
+
+OBJC_CLASS CALayer;
+OBJC_CLASS WKView;
 #endif
 
 namespace WebKit {
index cc0725a..b106b09 100644 (file)
 
 #if PLATFORM(MAC)
 #include <wtf/RetainPtr.h>
-#ifdef __OBJC__
-@class NSWindow;
-@class WKView;
-@class WebInspectorProxyObjCAdapter;
-#else
-class NSWindow;
-class WKView;
-class WebInspectorProxyObjCAdapter;
-#endif
+
+OBJC_CLASS NSWindow;
+OBJC_CLASS WKView;
+OBJC_CLASS WebInspectorProxyObjCAdapter;
 #endif
 
 namespace WebKit {
index ee4fa3d..20ffd0b 100644 (file)
 #include "WebContextMenuProxy.h"
 #include <wtf/RetainPtr.h>
 
-#ifdef __OBJC__
-@class NSPopUpButtonCell;
-@class WKView;
-#else
-class NSPopUpButtonCell;
-class WKView;
-#endif
+OBJC_CLASS NSPopUpButtonCell;
+OBJC_CLASS WKView;
 
 namespace WebKit {
 
index 3c4902c..788fd20 100644 (file)
 #include "WebPopupMenuProxy.h"
 #include <wtf/RetainPtr.h>
 
-#ifdef __OBJC__
-@class NSPopUpButtonCell;
-@class WKView;
-#else
-class NSPopUpButtonCell;
-class WKView;
-#endif
+OBJC_CLASS NSPopUpButtonCell;
+OBJC_CLASS WKView;
 
 namespace WebKit {
 
index bacdd01..ead6a73 100644 (file)
 
 #if PLATFORM(MAC)
 #include <wtf/RetainPtr.h>
-#ifdef __OBJC__
-@class NSURLDownload;
-@class WKDownloadAsDelegate;
-#else
-class NSURLDownload;
-class WKDownloadAsDelegate;
-#endif
+
+OBJC_CLASS NSPopUpButtonCell;
+OBJC_CLASS WKView;
 #endif
 
 #if USE(CFNETWORK)
index 2c3b052..0ce9abb 100644 (file)
 
 #if PLATFORM(MAC)
 #include <wtf/RetainPtr.h>
-#ifdef __OBJC__
-@class CALayer;
-#else
-class CALayer;
-#endif
+OBJC_CLASS NSPopUpButtonCell;
+OBJC_CLASS WKView;
 #endif
 
 namespace WebCore {
index ed05cc7..400c8c5 100644 (file)
 
 #if PLATFORM(MAC)
 #include <wtf/RetainPtr.h>
-#ifdef __OBJC__
-@class CALayer;
-#else
-class CALayer;
-#endif
+OBJC_CLASS NSPopUpButtonCell;
+OBJC_CLASS WKView;
 typedef struct __WKCARemoteLayerClientRef *WKCARemoteLayerClientRef;
 #endif
 
index 873b425..b813011 100644 (file)
 
 #if PLATFORM(MAC)
 #include <wtf/RetainPtr.h>
-#ifdef __OBJC__
-@class AccessibilityWebPageObject;
-#else
-class AccessibilityWebPageObject;
-#endif
+OBJC_CLASS AccessibilityWebPageObject;
 #endif
 
 namespace CoreIPC {
index 0653973..50411aa 100644 (file)
@@ -75,6 +75,12 @@ static const type& name() \
 
 #elif defined(__APPLE__)
 
+#ifdef __OBJC__
+#define OBJC_CLASS @class
+#else
+#define OBJC_CLASS class
+#endif
+
 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
 #define ENABLE_WEB_PROCESS_SANDBOX 1
 #endif