Source/JavaScriptCore/ChangeLog

 12012-01-17 Sam Weinig <sam@webkit.org>
 2
 3 Add helper macro for forward declaring objective-c classes
 4 https://bugs.webkit.org/show_bug.cgi?id=76485
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * wtf/Compiler.h:
 9 Add OBJC_CLASS macro which helps reduce code when forward declaring an
 10 objective-c class in a header which can be included from both Objective-C
 11 and non-Objective-C files.
 12
1132012-01-17 Filip Pizlo <fpizlo@apple.com>
214
315 DFG should be able to do JS and custom getter caching

Source/WebCore/ChangeLog

 12012-01-17 Sam Weinig <sam@webkit.org>
 2
 3 Add helper macro for forward declaring objective-c classes
 4 https://bugs.webkit.org/show_bug.cgi?id=76485
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * accessibility/AccessibilityObject.h:
 9 * bindings/js/ScriptController.h:
 10 * bridge/objc/objc_utility.h:
 11 * page/DragClient.h:
 12 * page/EditorClient.h:
 13 * platform/AutodrainedPool.h:
 14 * platform/ContextMenuItem.h:
 15 * platform/Cursor.h:
 16 * platform/DragData.h:
 17 * platform/DragImage.h:
 18 * platform/KURL.h:
 19 * platform/Pasteboard.h:
 20 * platform/PlatformKeyboardEvent.h:
 21 * platform/PlatformMenuDescription.h:
 22 * platform/PlatformScreen.h:
 23 * platform/SharedBuffer.h:
 24 * platform/Widget.h:
 25 * platform/cf/SchedulePair.h:
 26 * platform/graphics/BitmapImage.h:
 27 * platform/graphics/FontPlatformData.h:
 28 * platform/graphics/GraphicsContext3D.h:
 29 * platform/graphics/GraphicsLayer.h:
 30 * platform/graphics/Icon.h:
 31 * platform/graphics/Image.h:
 32 * platform/graphics/MediaPlayer.h:
 33 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
 34 * platform/graphics/ca/PlatformCAAnimation.h:
 35 * platform/graphics/ca/mac/TileCache.h:
 36 * platform/graphics/mac/ColorMac.h:
 37 * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
 38 * platform/graphics/mac/MediaPlayerProxy.h:
 39 * platform/mac/ClipboardMac.h:
 40 * platform/mac/LocalCurrentGraphicsContext.h:
 41 * platform/mac/PasteboardHelper.h:
 42 * platform/mac/PopupMenuMac.h:
 43 * platform/mac/ScrollAnimatorMac.h:
 44 * platform/mac/WebCoreSystemInterface.h:
 45 * platform/network/ResourceHandle.h:
 46 * platform/network/ResourceHandleClient.h:
 47 * platform/network/ResourceHandleInternal.h:
 48 * platform/network/cf/AuthenticationChallenge.h:
 49 * platform/network/cf/ResourceError.h:
 50 * platform/network/cf/ResourceRequest.h:
 51 * platform/network/cf/ResourceResponse.h:
 52 * rendering/RenderThemeMac.h:
 53 Deploy OBJC_CLASS for a little code reduction.
 54
1552012-01-17 Andreas Kling <awesomekling@apple.com>
256
357 SpaceSplitString: Share equivalent string piece vectors.

Source/WebKit2/ChangeLog

 12012-01-17 Sam Weinig <sam@webkit.org>
 2
 3 Add helper macro for forward declaring objective-c classes
 4 https://bugs.webkit.org/show_bug.cgi?id=76485
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * WebProcess/WebCoreSupport/WebDragClient.h:
 9 Deploy OBJC_CLASS for a little code reduction.
 10
 11 * config.h:
 12 Remove duplicate copy of OBJC_CLASS.
 13
1142012-01-17 Martin Robinson <mrobinson@igalia.com>
215
316 [GTK] [WK2] WebKitPrivate should include the entire WebKit2 C API

Source/JavaScriptCore/wtf/Compiler.h

11/*
2  * Copyright (C) 2011 Apple Inc. All rights reserved.
 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
33 *
44 * Redistribution and use in source and binary forms, with or without
55 * modification, are permitted provided that the following conditions

239239#define FINAL
240240#endif
241241
 242/* OBJC_CLASS */
 243
 244#ifndef OBJC_CLASS
 245#ifdef __OBJC__
 246#define OBJC_CLASS @class
 247#else
 248#define OBJC_CLASS class
 249#endif
 250#endif
 251
242252#endif /* WTF_Compiler_h */

Source/WebCore/accessibility/AccessibilityObject.h

4747#include "AccessibilityObjectWrapper.h"
4848#endif
4949
 50#if PLATFORM(MAC)
 51
5052typedef struct _NSRange NSRange;
5153
52 #ifdef __OBJC__
53 @class NSArray;
54 @class NSAttributedString;
55 @class NSData;
56 @class NSMutableAttributedString;
57 @class NSString;
58 @class NSValue;
59 @class NSView;
60 @class WebAccessibilityObjectWrapper;
61 #else
62 class NSArray;
63 class NSAttributedString;
64 class NSData;
65 class NSMutableAttributedString;
66 class NSString;
67 class NSValue;
68 class NSView;
69 #if PLATFORM(GTK)
 54OBJC_CLASS NSArray;
 55OBJC_CLASS NSAttributedString;
 56OBJC_CLASS NSData;
 57OBJC_CLASS NSMutableAttributedString;
 58OBJC_CLASS NSString;
 59OBJC_CLASS NSValue;
 60OBJC_CLASS NSView;
 61OBJC_CLASS WebAccessibilityObjectWrapper;
 62
 63typedef WebAccessibilityObjectWrapper AccessibilityObjectWrapper;
 64
 65#elif PLATFORM(GTK)
7066typedef struct _AtkObject AtkObject;
7167typedef struct _AtkObject AccessibilityObjectWrapper;
72 #elif PLATFORM(MAC)
73 class WebAccessibilityObjectWrapper;
7468#else
7569class AccessibilityObjectWrapper;
7670#endif
77 #endif
78 
79 #if PLATFORM(MAC)
80 typedef WebAccessibilityObjectWrapper AccessibilityObjectWrapper;
81 #endif
8271
8372namespace WebCore {
8473

Source/WebCore/bindings/js/ScriptController.h

3333
3434#if PLATFORM(MAC)
3535#include <wtf/RetainPtr.h>
36 
37 #ifdef __OBJC__
38 @class WebScriptObject;
39 #else
40 class WebScriptObject;
41 #endif
 36OBJC_CLASS WebScriptObject;
4237#endif
4338
4439struct NPObject;

Source/WebCore/bridge/objc/objc_utility.h

3232#include <runtime/Error.h>
3333#include <runtime/JSObject.h>
3434
35 #ifdef __OBJC__
36 @class NSString;
37 #else
38 class NSString;
39 #endif
 35OBJC_CLASS NSString;
4036
4137namespace JSC {
4238namespace Bindings {

Source/WebCore/page/DragClient.h

3232#include "IntPoint.h"
3333
3434#if PLATFORM(MAC)
35 #ifdef __OBJC__
36 @class DOMElement;
37 @class NSURL;
38 @class NSString;
39 @class NSPasteboard;
40 #else
41 class DOMElement;
42 class NSURL;
43 class NSString;
44 class NSPasteboard;
45 #endif
 35OBJC_CLASS DOMElement;
 36OBJC_CLASS NSURL;
 37OBJC_CLASS NSString;
 38OBJC_CLASS NSPasteboard;
4639#endif
4740
4841namespace WebCore {

Source/WebCore/page/EditorClient.h

3636#include <wtf/Vector.h>
3737
3838#if PLATFORM(MAC)
39 #ifdef __OBJC__
40 @class NSAttributedString;
41 @class NSPasteboard;
42 @class NSString;
43 @class NSURL;
44 #else
45 class NSAttributedString;
46 class NSPasteboard;
47 class NSString;
48 class NSURL;
49 #endif
 39OBJC_CLASS NSAttributedString;
 40OBJC_CLASS NSPasteboard;
 41OBJC_CLASS NSString;
 42OBJC_CLASS NSURL;
5043#endif
5144
5245namespace WebCore {

Source/WebCore/platform/AutodrainedPool.h

3131
3232#include <wtf/Noncopyable.h>
3333
34 #ifdef __OBJC__
35 @class NSAutoreleasePool;
36 #else
37 class NSAutoreleasePool;
38 #endif
 34OBJC_CLASS NSAutoreleasePool;
3935
4036namespace WebCore {
4137

Source/WebCore/platform/ContextMenuItem.h

3333
3434#if PLATFORM(MAC)
3535#include <wtf/RetainPtr.h>
36 
37 #ifdef __OBJC__
38 @class NSMenuItem;
39 #else
40 class NSMenuItem;
41 #endif
 36OBJC_CLASS NSMenuItem;
4237#elif PLATFORM(WIN)
4338typedef struct tagMENUITEMINFOW MENUITEMINFO;
4439#elif PLATFORM(GTK)

Source/WebCore/platform/Cursor.h

@@typedef HICON HCURSOR;
4646#endif
4747
4848#if PLATFORM(MAC) && !PLATFORM(IOS)
49 #ifdef __OBJC__
50 @class NSCursor;
51 #else
52 class NSCursor;
53 #endif
 49OBJC_CLASS NSCursor;
5450#endif
5551
5652#if PLATFORM(WX)

Source/WebCore/platform/DragData.h

3636
3737#if PLATFORM(MAC)
3838#include <wtf/RetainPtr.h>
 39
3940#ifdef __OBJC__
4041#import <Foundation/Foundation.h>
4142#import <AppKit/NSDragging.h>
4243typedef id <NSDraggingInfo> DragDataRef;
43 @class NSPasteboard;
4444#else
4545typedef void* DragDataRef;
46 class NSPasteboard;
4746#endif
 47
 48OBJC_CLASS NSPasteboard;
 49
4850#elif PLATFORM(QT)
4951QT_BEGIN_NAMESPACE
5052class QMimeData;

Source/WebCore/platform/DragImage.h

3232
3333#if PLATFORM(MAC)
3434#include <wtf/RetainPtr.h>
35 #ifdef __OBJC__
36 @class NSImage;
37 #else
38 class NSImage;
39 #endif
 35OBJC_CLASS NSImage;
4036#elif PLATFORM(QT)
4137QT_BEGIN_NAMESPACE
4238class QPixmap;

Source/WebCore/platform/KURL.h

@@typedef const struct __CFURL* CFURLRef;
3535#endif
3636
3737#if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT))
38 #ifdef __OBJC__
39 @class NSURL;
40 #else
41 class NSURL;
42 #endif
 38OBJC_CLASS NSURL;
4339#endif
4440
4541#if PLATFORM(QT)

Source/WebCore/platform/Pasteboard.h

4343// knowledge of the frame and editor or moved into the editing directory.
4444
4545#if PLATFORM(MAC)
46 #ifdef __OBJC__
47 @class NSFileWrapper;
48 @class NSPasteboard;
49 @class NSArray;
50 #else
51 class NSFileWrapper;
52 class NSPasteboard;
53 class NSArray;
54 #endif
 46OBJC_CLASS NSFileWrapper;
 47OBJC_CLASS NSPasteboard;
 48OBJC_CLASS NSArray;
5549#endif
5650
5751#if PLATFORM(WIN)

Source/WebCore/platform/PlatformKeyboardEvent.h

3232
3333#if PLATFORM(MAC)
3434#include <wtf/RetainPtr.h>
35 #ifdef __OBJC__
36 @class NSEvent;
37 #else
38 class NSEvent;
39 #endif
 35OBJC_CLASS NSEvent;
4036#endif
4137
4238#if PLATFORM(WIN)

Source/WebCore/platform/PlatformMenuDescription.h

2727#define PlatformMenuDescription_h
2828
2929#if PLATFORM(MAC)
30 #ifdef __OBJC__
31 @class NSMutableArray;
32 #else
33 class NSMutableArray;
34 #endif
 30OBJC_CLASS NSMutableArray;
3531#elif PLATFORM(QT)
3632#include <qlist.h>
3733#elif PLATFORM(GTK)

Source/WebCore/platform/PlatformScreen.h

3131#include <wtf/RefPtr.h>
3232
3333#if PLATFORM(MAC)
34 #ifdef __OBJC__
35  @class NSScreen;
36  @class NSWindow;
37 #else
38  class NSScreen;
39  class NSWindow;
40 #endif
 34OBJC_CLASS NSScreen;
 35OBJC_CLASS NSWindow;
4136#endif
4237
4338typedef uint32_t PlatformDisplayID;

Source/WebCore/platform/SharedBuffer.h

2323 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2424 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2525 */
 26
2627#ifndef SharedBuffer_h
2728#define SharedBuffer_h
2829

3738#endif
3839
3940#if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT))
40 #ifdef __OBJC__
41 @class NSData;
42 #else
43 class NSData;
44 #endif
45 
 41OBJC_CLASS NSData;
4642#endif
4743
4844namespace WebCore {

Source/WebCore/platform/Widget.h

4545#endif
4646
4747#if PLATFORM(MAC)
48 #ifdef __OBJC__
49 @class NSView;
50 @class NSWindow;
51 #else
52 class NSView;
53 class NSWindow;
54 #endif
 48OBJC_CLASS NSView;
 49OBJC_CLASS NSWindow;
5550typedef NSView *PlatformWidget;
5651#endif
5752

Source/WebCore/platform/cf/SchedulePair.h

3535#include <wtf/RetainPtr.h>
3636
3737#if PLATFORM(MAC)
38 #ifdef __OBJC__
39 @class NSRunLoop;
40 #else
41 class NSRunLoop;
42 #endif
 38OBJC_CLASS NSRunLoop;
4339#endif
4440
4541namespace WebCore {

Source/WebCore/platform/graphics/BitmapImage.h

3434
3535#if PLATFORM(MAC)
3636#include <wtf/RetainPtr.h>
37 #ifdef __OBJC__
38 @class NSImage;
39 #else
40 class NSImage;
41 #endif
 37OBJC_CLASS NSImage;
4238#endif
4339
4440#if PLATFORM(WIN)

Source/WebCore/platform/graphics/FontPlatformData.h

5555#endif
5656
5757#if OS(DARWIN)
58 #ifdef __OBJC__
59 @class NSFont;
60 #else
61 class NSFont;
62 #endif
 58OBJC_CLASS NSFont;
6359
6460typedef struct CGFont* CGFontRef;
6561typedef const struct __CTFont* CTFontRef;

Source/WebCore/platform/graphics/GraphicsContext3D.h

5050#if PLATFORM(MAC)
5151#include <OpenGL/OpenGL.h>
5252#include <wtf/RetainPtr.h>
53 #ifdef __OBJC__
54 @class CALayer;
55 @class WebGLLayer;
56 #else
57 class CALayer;
58 class WebGLLayer;
59 #endif
 53OBJC_CLASS CALayer;
 54OBJC_CLASS WebGLLayer;
6055#elif PLATFORM(QT)
6156QT_BEGIN_NAMESPACE
6257class QPainter;

Source/WebCore/platform/graphics/GraphicsLayer.h

4444#include <wtf/PassOwnPtr.h>
4545
4646#if PLATFORM(MAC)
47 #ifdef __OBJC__
48 @class CALayer;
49 #else
50 class CALayer;
51 #endif
 47OBJC_CLASS CALayer;
5248typedef CALayer PlatformLayer;
5349#elif PLATFORM(WIN)
5450typedef struct _CACFLayer PlatformLayer;

Source/WebCore/platform/graphics/Icon.h

2828
2929#if PLATFORM(MAC)
3030#include <wtf/RetainPtr.h>
31 #ifdef __OBJC__
32 @class NSImage;
33 #else
34 class NSImage;
35 #endif
 31OBJC_CLASS NSImage;
3632#elif PLATFORM(WIN)
3733typedef struct HICON__* HICON;
3834#elif PLATFORM(QT)

Source/WebCore/platform/graphics/Image.h

3939#include <wtf/text/WTFString.h>
4040
4141#if PLATFORM(MAC)
42 #ifdef __OBJC__
43 @class NSImage;
44 #else
45 class NSImage;
46 #endif
 42OBJC_CLASS NSImage;
4743#endif
4844
4945#if USE(CG)

Source/WebCore/platform/graphics/MediaPlayer.h

4646#include "GraphicsLayer.h"
4747#endif
4848
49 #ifdef __OBJC__
50 @class AVPlayer;
51 @class QTMovie;
52 #else
53 class AVPlayer;
54 class QTMovie;
55 #endif
 49OBJC_CLASS AVPlayer;
 50OBJC_CLASS QTMovie;
 51
5652class AVCFPlayer;
5753class QTMovieGWorld;
5854class QTMovieVisualContext;

Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h

3030
3131#include "MediaPlayerPrivateAVFoundation.h"
3232
33 #ifdef __OBJC__
34 @class AVAsset;
35 @class AVPlayer;
36 @class AVPlayerItem;
37 @class AVPlayerLayer;
38 @class AVAssetImageGenerator;
39 @class WebCoreAVFMovieObserver;
40 #else
41 class AVAsset;
42 class AVPlayer;
43 class AVPlayerItem;
44 class AVPlayerLayer;
45 class AVAssetImageGenerator;
46 class WebCoreAVFMovieObserver;
 33OBJC_CLASS AVAsset;
 34OBJC_CLASS AVPlayer;
 35OBJC_CLASS AVPlayerItem;
 36OBJC_CLASS AVPlayerLayer;
 37OBJC_CLASS AVAssetImageGenerator;
 38OBJC_CLASS WebCoreAVFMovieObserver;
 39
 40#ifndef __OBJC__
4741typedef struct objc_object *id;
4842#endif
4943

Source/WebCore/platform/graphics/ca/PlatformCAAnimation.h

3636#include <wtf/Vector.h>
3737
3838#if PLATFORM(MAC)
39 #ifdef __OBJC__
40 @class CAPropertyAnimation;
41 #else
42 class CAPropertyAnimation;
43 #endif
 39OBJC_CLASS CAPropertyAnimation;
4440typedef CAPropertyAnimation* PlatformAnimationRef;
4541#elif PLATFORM(WIN)
4642typedef struct _CACFAnimation* CACFAnimationRef;

Source/WebCore/platform/graphics/ca/mac/TileCache.h

3131#include <wtf/PassOwnPtr.h>
3232#include <wtf/RetainPtr.h>
3333
34 #ifdef __OBJC__
35 @class CALayer;
36 @class WebTileCacheLayer;
37 @class WebTileLayer;
38 #else
39 class CALayer;
40 class WebTileCacheLayer;
41 class WebTileLayer;
42 #endif
 34OBJC_CLASS CALayer;
 35OBJC_CLASS WebTileCacheLayer;
 36OBJC_CLASS WebTileLayer;
4337
4438namespace WebCore {
4539

Source/WebCore/platform/graphics/mac/ColorMac.h

3131
3232#include "Color.h"
3333
34 #ifdef __OBJC__
35 @class NSColor;
36 #else
37 class NSColor;
38 #endif
 34OBJC_CLASS NSColor;
3935
4036namespace WebCore {
4137

Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.h

3535
3636#ifdef __OBJC__
3737#import <QTKit/QTTime.h>
38 @class QTMovie;
39 @class QTMovieView;
40 @class QTMovieLayer;
41 @class QTVideoRendererWebKitOnly;
42 @class WebCoreMovieObserver;
4338#else
44 class NSDictionary;
45 class NSMutableDictionary;
46 class QTMovie;
47 class QTMovieView;
4839class QTTime;
49 class QTMovieLayer;
50 class QTVideoRendererWebKitOnly;
51 class WebCoreMovieObserver;
5240#endif
5341
 42OBJC_CLASS NSDictionary;
 43OBJC_CLASS NSMutableDictionary;
 44OBJC_CLASS QTMovie;
 45OBJC_CLASS QTMovieView;
 46OBJC_CLASS QTMovieLayer;
 47OBJC_CLASS QTVideoRendererWebKitOnly;
 48OBJC_CLASS WebCoreMovieObserver;
 49
5450#ifndef DRAW_FRAME_RATE
5551#define DRAW_FRAME_RATE 0
5652#endif

Source/WebCore/platform/graphics/mac/MediaPlayerProxy.h

2626#ifndef MediaPlayerProxy_h
2727#define MediaPlayerProxy_h
2828
29 #ifdef __OBJC__
30 @class WebMediaPlayerProxy;
31 #else
32 class WebMediaPlayerProxy;
33 #endif
 29OBJC_CLASS WebMediaPlayerProxy;
3430
3531enum MediaPlayerProxyNotificationType {
3632

Source/WebCore/platform/mac/ClipboardMac.h

3030#include "Clipboard.h"
3131#include <wtf/RetainPtr.h>
3232
33 #ifdef __OBJC__
34 @class NSImage;
35 @class NSPasteboard;
36 #else
37 class NSImage;
38 class NSPasteboard;
39 #endif
 33OBJC_CLASS NSImage;
 34OBJC_CLASS NSPasteboard;
4035
4136namespace WebCore {
4237

Source/WebCore/platform/mac/LocalCurrentGraphicsContext.h

2424#include "skia/ext/skia_utils_mac.h"
2525#endif
2626
27 #ifdef __OBJC__
28 @class NSGraphicsContext;
29 #else
30 class NSGraphicsContext;
31 #endif
 27OBJC_CLASS NSGraphicsContext;
3228
3329namespace WebCore {
3430

Source/WebCore/platform/mac/PasteboardHelper.h

3434
3535#import <wtf/Forward.h>
3636
37 #ifdef __OBJC__
38 @class DOMDocumentFragment;
39 #else
40 class DOMDocumentFragment;
41 #endif
 37OBJC_CLASS DOMDocumentFragment;
4238
4339namespace WebCore {
4440

Source/WebCore/platform/mac/PopupMenuMac.h

2626#include <wtf/RefCounted.h>
2727#include <wtf/RetainPtr.h>
2828
29 #ifdef __OBJC__
30 @class NSPopUpButtonCell;
31 #else
32 class NSPopUpButtonCell;
33 #endif
 29OBJC_CLASS NSPopUpButtonCell;
3430
3531namespace WebCore {
3632

Source/WebCore/platform/mac/ScrollAnimatorMac.h

3636#include "Timer.h"
3737#include <wtf/RetainPtr.h>
3838
39 #ifdef __OBJC__
40 @class WebScrollAnimationHelperDelegate;
41 @class WebScrollbarPainterControllerDelegate;
42 @class WebScrollbarPainterDelegate;
43 #else
44 class WebScrollAnimationHelperDelegate;
45 class WebScrollbarPainterControllerDelegate;
46 class WebScrollbarPainterDelegate;
47 #endif
 39OBJC_CLASS WebScrollAnimationHelperDelegate;
 40OBJC_CLASS WebScrollbarPainterControllerDelegate;
 41OBJC_CLASS WebScrollbarPainterDelegate;
4842
4943typedef id ScrollbarPainterController;
5044

Source/WebCore/platform/mac/WebCoreSystemInterface.h

@@typedef struct _CFURLRequest* CFMutableURLRequestRef;
7777typedef const struct _CFURLRequest* CFURLRequestRef;
7878#endif
7979
80 #ifdef __OBJC__
81 @class AVAsset;
82 @class NSArray;
83 @class NSButtonCell;
84 @class NSControl;
85 @class NSCursor;
86 @class NSData;
87 @class NSDate;
88 @class NSEvent;
89 @class NSFont;
90 @class NSHTTPCookie;
91 @class NSImage;
92 @class NSMenu;
93 @class NSMutableURLRequest;
94 @class NSString;
95 @class NSTextFieldCell;
96 @class NSURL;
97 @class NSURLConnection;
98 @class NSURLRequest;
99 @class NSURLResponse;
100 @class NSView;
101 @class NSWindow;
102 @class QTMovie;
103 @class QTMovieView;
104 #else
105 class AVAsset;
106 class NSArray;
107 class NSButtonCell;
108 class NSControl;
109 class NSCursor;
110 class NSData;
111 class NSDate;
112 class NSEvent;
113 class NSFont;
114 class NSHTTPCookie;
115 class NSImage;
116 class NSMenu;
117 class NSMutableArray;
118 class NSMutableURLRequest;
119 class NSURL;
120 class NSURLRequest;
121 class NSString;
122 class NSTextFieldCell;
123 class NSURLConnection;
124 class NSURLResponse;
125 class NSView;
126 class NSWindow;
127 class QTMovie;
128 class QTMovieView;
129 #endif
 80OBJC_CLASS AVAsset;
 81OBJC_CLASS NSArray;
 82OBJC_CLASS NSButtonCell;
 83OBJC_CLASS NSControl;
 84OBJC_CLASS NSCursor;
 85OBJC_CLASS NSData;
 86OBJC_CLASS NSDate;
 87OBJC_CLASS NSEvent;
 88OBJC_CLASS NSFont;
 89OBJC_CLASS NSHTTPCookie;
 90OBJC_CLASS NSImage;
 91OBJC_CLASS NSMenu;
 92OBJC_CLASS NSMutableURLRequest;
 93OBJC_CLASS NSString;
 94OBJC_CLASS NSTextFieldCell;
 95OBJC_CLASS NSURL;
 96OBJC_CLASS NSURLConnection;
 97OBJC_CLASS NSURLRequest;
 98OBJC_CLASS NSURLResponse;
 99OBJC_CLASS NSView;
 100OBJC_CLASS NSWindow;
 101OBJC_CLASS QTMovie;
 102OBJC_CLASS QTMovieView;
130103
131104extern "C" {
132105

Source/WebCore/platform/network/ResourceHandle.h

@@typedef LPVOID HINTERNET;
5252#endif
5353
5454#if PLATFORM(MAC)
55 #ifdef __OBJC__
56 @class NSData;
57 @class NSError;
58 @class NSURLConnection;
59 @class WebCoreResourceHandleAsDelegate;
60 #else
61 class NSData;
62 class NSError;
63 class NSURLConnection;
64 class WebCoreResourceHandleAsDelegate;
 55OBJC_CLASS NSData;
 56OBJC_CLASS NSError;
 57OBJC_CLASS NSURLConnection;
 58OBJC_CLASS WebCoreResourceHandleAsDelegate;
 59#ifndef __OBJC__
6560typedef struct objc_object *id;
6661#endif
6762#endif

Source/WebCore/platform/network/ResourceHandleClient.h

4040#endif
4141
4242#if PLATFORM(MAC)
43 #ifdef __OBJC__
44 @class NSCachedURLResponse;
45 #else
46 class NSCachedURLResponse;
47 #endif
 43OBJC_CLASS NSCachedURLResponse;
4844#endif
4945
5046namespace WebCore {

Source/WebCore/platform/network/ResourceHandleInternal.h

@@class QNetworkReplyHandler;
6161#endif
6262
6363#if PLATFORM(MAC)
64 #ifdef __OBJC__
65 @class NSURLAuthenticationChallenge;
66 @class NSURLConnection;
67 #else
68 class NSURLAuthenticationChallenge;
69 class NSURLConnection;
70 #endif
 64OBJC_CLASS NSURLAuthenticationChallenge;
 65OBJC_CLASS NSURLConnection;
7166#endif
7267
7368// The allocations and releases in ResourceHandleInternal are

Source/WebCore/platform/network/cf/AuthenticationChallenge.h

3131#include <wtf/RefPtr.h>
3232
3333#if USE(CFNETWORK)
 34
3435typedef struct _CFURLAuthChallenge* CFURLAuthChallengeRef;
 36
3537#else
 38
3639#ifndef __OBJC__
3740typedef struct objc_object *id;
38 class NSURLAuthenticationChallenge;
39 #else
40 @class NSURLAuthenticationChallenge;
4141#endif
 42
 43OBJC_CLASS NSURLAuthenticationChallenge;
 44
4245#endif
4346
4447namespace WebCore {

Source/WebCore/platform/network/cf/ResourceError.h

3737#include <wincrypt.h> // windows.h must be included before wincrypt.h.
3838#endif
3939
40 #ifdef __OBJC__
41 @class NSError;
42 #else
43 class NSError;
 40#if PLATFORM(MAC)
 41OBJC_CLASS NSError;
4442#endif
4543
4644namespace WebCore {

Source/WebCore/platform/network/cf/ResourceRequest.h

3434typedef const struct _CFURLRequest* CFURLRequestRef;
3535#endif
3636
37 #ifdef __OBJC__
38 @class NSURLRequest;
39 #else
40 class NSURLRequest;
41 #endif
 37OBJC_CLASS NSURLRequest;
4238
4339#if USE(CFURLSTORAGESESSIONS) && (defined(BUILDING_ON_SNOW_LEOPARD) || defined(BUILDING_ON_LEOPARD))
4440typedef struct __CFURLStorageSession* CFURLStorageSessionRef;

Source/WebCore/platform/network/cf/ResourceResponse.h

3333typedef struct _CFURLResponse* CFURLResponseRef;
3434#endif
3535
36 #ifdef __OBJC__
37 @class NSURLResponse;
38 #else
39 class NSURLResponse;
40 #endif
 36OBJC_CLASS NSURLResponse;
4137
4238namespace WebCore {
4339

Source/WebCore/rendering/RenderThemeMac.h

2727#import <wtf/HashMap.h>
2828#import <wtf/RetainPtr.h>
2929
30 class RenderProgress;
3130
32 #ifdef __OBJC__
33 @class WebCoreRenderThemeNotificationObserver;
34 #else
35 class WebCoreRenderThemeNotificationObserver;
36 #endif
 31OBJC_CLASS WebCoreRenderThemeNotificationObserver;
3732
3833namespace WebCore {
3934
 35class RenderProgress;
4036class RenderStyle;
4137
4238class RenderThemeMac : public RenderTheme {

Source/WebKit2/WebProcess/WebCoreSupport/WebDragClient.h

2929#include <WebCore/DragClient.h>
3030
3131#if PLATFORM(MAC)
32 #ifdef __OBJC__
33 @class WKPasteboardFilePromiseOwner;
34 @class WKPasteboardOwner;
35 #else
36 class WKPasteboardFilePromiseOwner;
37 class WKPasteboardOwner;
38 #endif
 32OBJC_CLASS WKPasteboardFilePromiseOwner;
 33OBJC_CLASS WKPasteboardOwner;
3934#endif
4035
4136namespace WebKit {

Source/WebKit2/config.h

@@static const type& name() \
6161
6262#if PLATFORM(MAC)
6363
64 #ifdef __OBJC__
65 #define OBJC_CLASS @class
66 #else
67 #define OBJC_CLASS class
68 #endif
69 
7064#if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
7165#define ENABLE_WEB_PROCESS_SANDBOX 1
7266#endif