- a/Source/JavaScriptCore/ChangeLog +12 lines
Lines 1-3 a/Source/JavaScriptCore/ChangeLog_sec1
1
2012-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
1
2012-01-17  Filip Pizlo  <fpizlo@apple.com>
13
2012-01-17  Filip Pizlo  <fpizlo@apple.com>
2
14
3
        DFG should be able to do JS and custom getter caching
15
        DFG should be able to do JS and custom getter caching
- a/Source/WebCore/ChangeLog +54 lines
Lines 1-3 a/Source/WebCore/ChangeLog_sec1
1
2012-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
1
2012-01-17  Andreas Kling  <awesomekling@apple.com>
55
2012-01-17  Andreas Kling  <awesomekling@apple.com>
2
56
3
        SpaceSplitString: Share equivalent string piece vectors.
57
        SpaceSplitString: Share equivalent string piece vectors.
- a/Source/WebKit2/ChangeLog +13 lines
Lines 1-3 a/Source/WebKit2/ChangeLog_sec1
1
2012-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
1
2012-01-17  Martin Robinson  <mrobinson@igalia.com>
14
2012-01-17  Martin Robinson  <mrobinson@igalia.com>
2
15
3
        [GTK] [WK2] WebKitPrivate should include the entire WebKit2 C API
16
        [GTK] [WK2] WebKitPrivate should include the entire WebKit2 C API
- a/Source/JavaScriptCore/wtf/Compiler.h -1 / +11 lines
Lines 1-5 a/Source/JavaScriptCore/wtf/Compiler.h_sec1
1
/*
1
/*
2
 * Copyright (C) 2011 Apple Inc. All rights reserved.
2
 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
3
 *
3
 *
4
 * Redistribution and use in source and binary forms, with or without
4
 * Redistribution and use in source and binary forms, with or without
5
 * modification, are permitted provided that the following conditions
5
 * modification, are permitted provided that the following conditions
Lines 239-242 a/Source/JavaScriptCore/wtf/Compiler.h_sec2
239
#define FINAL
239
#define FINAL
240
#endif
240
#endif
241
241
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
242
#endif /* WTF_Compiler_h */
252
#endif /* WTF_Compiler_h */
- a/Source/WebCore/accessibility/AccessibilityObject.h -25 / +14 lines
Lines 47-84 a/Source/WebCore/accessibility/AccessibilityObject.h_sec1
47
#include "AccessibilityObjectWrapper.h"
47
#include "AccessibilityObjectWrapper.h"
48
#endif
48
#endif
49
49
50
#if PLATFORM(MAC)
51
50
typedef struct _NSRange NSRange;
52
typedef struct _NSRange NSRange;
51
53
52
#ifdef __OBJC__
54
OBJC_CLASS NSArray;
53
@class NSArray;
55
OBJC_CLASS NSAttributedString;
54
@class NSAttributedString;
56
OBJC_CLASS NSData;
55
@class NSData;
57
OBJC_CLASS NSMutableAttributedString;
56
@class NSMutableAttributedString;
58
OBJC_CLASS NSString;
57
@class NSString;
59
OBJC_CLASS NSValue;
58
@class NSValue;
60
OBJC_CLASS NSView;
59
@class NSView;
61
OBJC_CLASS WebAccessibilityObjectWrapper;
60
@class WebAccessibilityObjectWrapper;
62
61
#else
63
typedef WebAccessibilityObjectWrapper AccessibilityObjectWrapper;
62
class NSArray;
64
63
class NSAttributedString;
65
#elif PLATFORM(GTK)
64
class NSData;
65
class NSMutableAttributedString;
66
class NSString;
67
class NSValue;
68
class NSView;
69
#if PLATFORM(GTK)
70
typedef struct _AtkObject AtkObject;
66
typedef struct _AtkObject AtkObject;
71
typedef struct _AtkObject AccessibilityObjectWrapper;
67
typedef struct _AtkObject AccessibilityObjectWrapper;
72
#elif PLATFORM(MAC)
73
class WebAccessibilityObjectWrapper;
74
#else
68
#else
75
class AccessibilityObjectWrapper;
69
class AccessibilityObjectWrapper;
76
#endif
70
#endif
77
#endif
78
79
#if PLATFORM(MAC)
80
typedef WebAccessibilityObjectWrapper AccessibilityObjectWrapper;
81
#endif
82
71
83
namespace WebCore {
72
namespace WebCore {
84
73
- a/Source/WebCore/bindings/js/ScriptController.h -6 / +1 lines
Lines 33-44 a/Source/WebCore/bindings/js/ScriptController.h_sec1
33
33
34
#if PLATFORM(MAC)
34
#if PLATFORM(MAC)
35
#include <wtf/RetainPtr.h>
35
#include <wtf/RetainPtr.h>
36
36
OBJC_CLASS WebScriptObject;
37
#ifdef __OBJC__
38
@class WebScriptObject;
39
#else
40
class WebScriptObject;
41
#endif
42
#endif
37
#endif
43
38
44
struct NPObject;
39
struct NPObject;
- a/Source/WebCore/bridge/objc/objc_utility.h -5 / +1 lines
Lines 32-42 a/Source/WebCore/bridge/objc/objc_utility.h_sec1
32
#include <runtime/Error.h>
32
#include <runtime/Error.h>
33
#include <runtime/JSObject.h>
33
#include <runtime/JSObject.h>
34
34
35
#ifdef __OBJC__
35
OBJC_CLASS NSString;
36
@class NSString;
37
#else
38
class NSString;
39
#endif
40
36
41
namespace JSC {
37
namespace JSC {
42
namespace Bindings {
38
namespace Bindings {
- a/Source/WebCore/page/DragClient.h -11 / +4 lines
Lines 32-48 a/Source/WebCore/page/DragClient.h_sec1
32
#include "IntPoint.h"
32
#include "IntPoint.h"
33
33
34
#if PLATFORM(MAC)
34
#if PLATFORM(MAC)
35
#ifdef __OBJC__
35
OBJC_CLASS DOMElement;
36
@class DOMElement;
36
OBJC_CLASS NSURL;
37
@class NSURL;
37
OBJC_CLASS NSString;
38
@class NSString;
38
OBJC_CLASS NSPasteboard;
39
@class NSPasteboard;
40
#else
41
class DOMElement;
42
class NSURL;
43
class NSString;
44
class NSPasteboard;
45
#endif
46
#endif
39
#endif
47
40
48
namespace WebCore {
41
namespace WebCore {
- a/Source/WebCore/page/EditorClient.h -11 / +4 lines
Lines 36-52 a/Source/WebCore/page/EditorClient.h_sec1
36
#include <wtf/Vector.h>
36
#include <wtf/Vector.h>
37
37
38
#if PLATFORM(MAC)
38
#if PLATFORM(MAC)
39
#ifdef __OBJC__
39
OBJC_CLASS NSAttributedString;
40
@class NSAttributedString;
40
OBJC_CLASS NSPasteboard;
41
@class NSPasteboard;
41
OBJC_CLASS NSString;
42
@class NSString;
42
OBJC_CLASS NSURL;
43
@class NSURL;
44
#else
45
class NSAttributedString;
46
class NSPasteboard;
47
class NSString;
48
class NSURL;
49
#endif
50
#endif
43
#endif
51
44
52
namespace WebCore {
45
namespace WebCore {
- a/Source/WebCore/platform/AutodrainedPool.h -5 / +1 lines
Lines 31-41 a/Source/WebCore/platform/AutodrainedPool.h_sec1
31
31
32
#include <wtf/Noncopyable.h>
32
#include <wtf/Noncopyable.h>
33
33
34
#ifdef __OBJC__
34
OBJC_CLASS NSAutoreleasePool;
35
@class NSAutoreleasePool;
36
#else
37
class NSAutoreleasePool;
38
#endif
39
35
40
namespace WebCore {
36
namespace WebCore {
41
37
- a/Source/WebCore/platform/ContextMenuItem.h -6 / +1 lines
Lines 33-44 a/Source/WebCore/platform/ContextMenuItem.h_sec1
33
33
34
#if PLATFORM(MAC)
34
#if PLATFORM(MAC)
35
#include <wtf/RetainPtr.h>
35
#include <wtf/RetainPtr.h>
36
36
OBJC_CLASS NSMenuItem;
37
#ifdef __OBJC__
38
@class NSMenuItem;
39
#else
40
class NSMenuItem;
41
#endif
42
#elif PLATFORM(WIN)
37
#elif PLATFORM(WIN)
43
typedef struct tagMENUITEMINFOW MENUITEMINFO;
38
typedef struct tagMENUITEMINFOW MENUITEMINFO;
44
#elif PLATFORM(GTK)
39
#elif PLATFORM(GTK)
- a/Source/WebCore/platform/Cursor.h -5 / +1 lines
Lines 46-56 typedef HICON HCURSOR; a/Source/WebCore/platform/Cursor.h_sec1
46
#endif
46
#endif
47
47
48
#if PLATFORM(MAC) && !PLATFORM(IOS)
48
#if PLATFORM(MAC) && !PLATFORM(IOS)
49
#ifdef __OBJC__
49
OBJC_CLASS NSCursor;
50
@class NSCursor;
51
#else
52
class NSCursor;
53
#endif
54
#endif
50
#endif
55
51
56
#if PLATFORM(WX)
52
#if PLATFORM(WX)
- a/Source/WebCore/platform/DragData.h -2 / +4 lines
Lines 36-50 a/Source/WebCore/platform/DragData.h_sec1
36
36
37
#if PLATFORM(MAC)
37
#if PLATFORM(MAC)
38
#include <wtf/RetainPtr.h>
38
#include <wtf/RetainPtr.h>
39
39
#ifdef __OBJC__ 
40
#ifdef __OBJC__ 
40
#import <Foundation/Foundation.h>
41
#import <Foundation/Foundation.h>
41
#import <AppKit/NSDragging.h>
42
#import <AppKit/NSDragging.h>
42
typedef id <NSDraggingInfo> DragDataRef;
43
typedef id <NSDraggingInfo> DragDataRef;
43
@class NSPasteboard;
44
#else
44
#else
45
typedef void* DragDataRef;
45
typedef void* DragDataRef;
46
class NSPasteboard;
47
#endif
46
#endif
47
48
OBJC_CLASS NSPasteboard;
49
48
#elif PLATFORM(QT)
50
#elif PLATFORM(QT)
49
QT_BEGIN_NAMESPACE
51
QT_BEGIN_NAMESPACE
50
class QMimeData;
52
class QMimeData;
- a/Source/WebCore/platform/DragImage.h -5 / +1 lines
Lines 32-42 a/Source/WebCore/platform/DragImage.h_sec1
32
32
33
#if PLATFORM(MAC)
33
#if PLATFORM(MAC)
34
#include <wtf/RetainPtr.h>
34
#include <wtf/RetainPtr.h>
35
#ifdef __OBJC__
35
OBJC_CLASS NSImage;
36
@class NSImage;
37
#else
38
class NSImage;
39
#endif
40
#elif PLATFORM(QT)
36
#elif PLATFORM(QT)
41
QT_BEGIN_NAMESPACE
37
QT_BEGIN_NAMESPACE
42
class QPixmap;
38
class QPixmap;
- a/Source/WebCore/platform/KURL.h -5 / +1 lines
Lines 35-45 typedef const struct __CFURL* CFURLRef; a/Source/WebCore/platform/KURL.h_sec1
35
#endif
35
#endif
36
36
37
#if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT))
37
#if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT))
38
#ifdef __OBJC__
38
OBJC_CLASS NSURL;
39
@class NSURL;
40
#else
41
class NSURL;
42
#endif
43
#endif
39
#endif
44
40
45
#if PLATFORM(QT)
41
#if PLATFORM(QT)
- a/Source/WebCore/platform/Pasteboard.h -9 / +3 lines
Lines 43-57 a/Source/WebCore/platform/Pasteboard.h_sec1
43
// knowledge of the frame and editor or moved into the editing directory.
43
// knowledge of the frame and editor or moved into the editing directory.
44
44
45
#if PLATFORM(MAC)
45
#if PLATFORM(MAC)
46
#ifdef __OBJC__
46
OBJC_CLASS NSFileWrapper;
47
@class NSFileWrapper;
47
OBJC_CLASS NSPasteboard;
48
@class NSPasteboard;
48
OBJC_CLASS NSArray;
49
@class NSArray;
50
#else
51
class NSFileWrapper;
52
class NSPasteboard;
53
class NSArray;
54
#endif
55
#endif
49
#endif
56
50
57
#if PLATFORM(WIN)
51
#if PLATFORM(WIN)
- a/Source/WebCore/platform/PlatformKeyboardEvent.h -5 / +1 lines
Lines 32-42 a/Source/WebCore/platform/PlatformKeyboardEvent.h_sec1
32
32
33
#if PLATFORM(MAC)
33
#if PLATFORM(MAC)
34
#include <wtf/RetainPtr.h>
34
#include <wtf/RetainPtr.h>
35
#ifdef __OBJC__
35
OBJC_CLASS NSEvent;
36
@class NSEvent;
37
#else
38
class NSEvent;
39
#endif
40
#endif
36
#endif
41
37
42
#if PLATFORM(WIN)
38
#if PLATFORM(WIN)
- a/Source/WebCore/platform/PlatformMenuDescription.h -5 / +1 lines
Lines 27-37 a/Source/WebCore/platform/PlatformMenuDescription.h_sec1
27
#define PlatformMenuDescription_h
27
#define PlatformMenuDescription_h
28
28
29
#if PLATFORM(MAC)
29
#if PLATFORM(MAC)
30
#ifdef __OBJC__
30
OBJC_CLASS NSMutableArray;
31
@class NSMutableArray;
32
#else
33
class NSMutableArray;
34
#endif
35
#elif PLATFORM(QT)
31
#elif PLATFORM(QT)
36
#include <qlist.h>
32
#include <qlist.h>
37
#elif PLATFORM(GTK)
33
#elif PLATFORM(GTK)
- a/Source/WebCore/platform/PlatformScreen.h -7 / +2 lines
Lines 31-43 a/Source/WebCore/platform/PlatformScreen.h_sec1
31
#include <wtf/RefPtr.h>
31
#include <wtf/RefPtr.h>
32
32
33
#if PLATFORM(MAC)
33
#if PLATFORM(MAC)
34
#ifdef __OBJC__
34
OBJC_CLASS NSScreen;
35
    @class NSScreen;
35
OBJC_CLASS NSWindow;
36
    @class NSWindow;
37
#else
38
    class NSScreen;
39
    class NSWindow;
40
#endif
41
#endif
36
#endif
42
37
43
typedef uint32_t PlatformDisplayID;
38
typedef uint32_t PlatformDisplayID;
- a/Source/WebCore/platform/SharedBuffer.h -6 / +2 lines
Lines 23-28 a/Source/WebCore/platform/SharedBuffer.h_sec1
23
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
24
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
25
 */
25
 */
26
26
#ifndef SharedBuffer_h
27
#ifndef SharedBuffer_h
27
#define SharedBuffer_h
28
#define SharedBuffer_h
28
29
Lines 37-48 a/Source/WebCore/platform/SharedBuffer.h_sec2
37
#endif
38
#endif
38
39
39
#if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT))
40
#if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT))
40
#ifdef __OBJC__
41
OBJC_CLASS NSData;
41
@class NSData;
42
#else
43
class NSData;
44
#endif
45
46
#endif
42
#endif
47
43
48
namespace WebCore {
44
namespace WebCore {
- a/Source/WebCore/platform/Widget.h -7 / +2 lines
Lines 45-57 a/Source/WebCore/platform/Widget.h_sec1
45
#endif
45
#endif
46
46
47
#if PLATFORM(MAC)
47
#if PLATFORM(MAC)
48
#ifdef __OBJC__
48
OBJC_CLASS NSView;
49
@class NSView;
49
OBJC_CLASS NSWindow;
50
@class NSWindow;
51
#else
52
class NSView;
53
class NSWindow;
54
#endif
55
typedef NSView *PlatformWidget;
50
typedef NSView *PlatformWidget;
56
#endif
51
#endif
57
52
- a/Source/WebCore/platform/cf/SchedulePair.h -5 / +1 lines
Lines 35-45 a/Source/WebCore/platform/cf/SchedulePair.h_sec1
35
#include <wtf/RetainPtr.h>
35
#include <wtf/RetainPtr.h>
36
36
37
#if PLATFORM(MAC)
37
#if PLATFORM(MAC)
38
#ifdef __OBJC__
38
OBJC_CLASS NSRunLoop;
39
@class NSRunLoop;
40
#else
41
class NSRunLoop;
42
#endif
43
#endif
39
#endif
44
40
45
namespace WebCore {
41
namespace WebCore {
- a/Source/WebCore/platform/graphics/BitmapImage.h -5 / +1 lines
Lines 34-44 a/Source/WebCore/platform/graphics/BitmapImage.h_sec1
34
34
35
#if PLATFORM(MAC)
35
#if PLATFORM(MAC)
36
#include <wtf/RetainPtr.h>
36
#include <wtf/RetainPtr.h>
37
#ifdef __OBJC__
37
OBJC_CLASS NSImage;
38
@class NSImage;
39
#else
40
class NSImage;
41
#endif
42
#endif
38
#endif
43
39
44
#if PLATFORM(WIN)
40
#if PLATFORM(WIN)
- a/Source/WebCore/platform/graphics/FontPlatformData.h -5 / +1 lines
Lines 55-65 a/Source/WebCore/platform/graphics/FontPlatformData.h_sec1
55
#endif
55
#endif
56
56
57
#if OS(DARWIN)
57
#if OS(DARWIN)
58
#ifdef __OBJC__
58
OBJC_CLASS NSFont;
59
@class NSFont;
60
#else
61
class NSFont;
62
#endif
63
59
64
typedef struct CGFont* CGFontRef;
60
typedef struct CGFont* CGFontRef;
65
typedef const struct __CTFont* CTFontRef;
61
typedef const struct __CTFont* CTFontRef;
- a/Source/WebCore/platform/graphics/GraphicsContext3D.h -7 / +2 lines
Lines 50-62 a/Source/WebCore/platform/graphics/GraphicsContext3D.h_sec1
50
#if PLATFORM(MAC)
50
#if PLATFORM(MAC)
51
#include <OpenGL/OpenGL.h>
51
#include <OpenGL/OpenGL.h>
52
#include <wtf/RetainPtr.h>
52
#include <wtf/RetainPtr.h>
53
#ifdef __OBJC__
53
OBJC_CLASS CALayer;
54
@class CALayer;
54
OBJC_CLASS WebGLLayer;
55
@class WebGLLayer;
56
#else
57
class CALayer;
58
class WebGLLayer;
59
#endif
60
#elif PLATFORM(QT)
55
#elif PLATFORM(QT)
61
QT_BEGIN_NAMESPACE
56
QT_BEGIN_NAMESPACE
62
class QPainter;
57
class QPainter;
- a/Source/WebCore/platform/graphics/GraphicsLayer.h -5 / +1 lines
Lines 44-54 a/Source/WebCore/platform/graphics/GraphicsLayer.h_sec1
44
#include <wtf/PassOwnPtr.h>
44
#include <wtf/PassOwnPtr.h>
45
45
46
#if PLATFORM(MAC)
46
#if PLATFORM(MAC)
47
#ifdef __OBJC__
47
OBJC_CLASS CALayer;
48
@class CALayer;
49
#else
50
class CALayer;
51
#endif
52
typedef CALayer PlatformLayer;
48
typedef CALayer PlatformLayer;
53
#elif PLATFORM(WIN)
49
#elif PLATFORM(WIN)
54
typedef struct _CACFLayer PlatformLayer;
50
typedef struct _CACFLayer PlatformLayer;
- a/Source/WebCore/platform/graphics/Icon.h -5 / +1 lines
Lines 28-38 a/Source/WebCore/platform/graphics/Icon.h_sec1
28
28
29
#if PLATFORM(MAC)
29
#if PLATFORM(MAC)
30
#include <wtf/RetainPtr.h>
30
#include <wtf/RetainPtr.h>
31
#ifdef __OBJC__
31
OBJC_CLASS NSImage;
32
@class NSImage;
33
#else
34
class NSImage;
35
#endif
36
#elif PLATFORM(WIN)
32
#elif PLATFORM(WIN)
37
typedef struct HICON__* HICON;
33
typedef struct HICON__* HICON;
38
#elif PLATFORM(QT)
34
#elif PLATFORM(QT)
- a/Source/WebCore/platform/graphics/Image.h -5 / +1 lines
Lines 39-49 a/Source/WebCore/platform/graphics/Image.h_sec1
39
#include <wtf/text/WTFString.h>
39
#include <wtf/text/WTFString.h>
40
40
41
#if PLATFORM(MAC)
41
#if PLATFORM(MAC)
42
#ifdef __OBJC__
42
OBJC_CLASS NSImage;
43
@class NSImage;
44
#else
45
class NSImage;
46
#endif
47
#endif
43
#endif
48
44
49
#if USE(CG)
45
#if USE(CG)
- a/Source/WebCore/platform/graphics/MediaPlayer.h -7 / +3 lines
Lines 46-58 a/Source/WebCore/platform/graphics/MediaPlayer.h_sec1
46
#include "GraphicsLayer.h"
46
#include "GraphicsLayer.h"
47
#endif
47
#endif
48
48
49
#ifdef __OBJC__
49
OBJC_CLASS AVPlayer;
50
@class AVPlayer;
50
OBJC_CLASS QTMovie;
51
@class QTMovie;
51
52
#else
53
class AVPlayer;
54
class QTMovie;
55
#endif
56
class AVCFPlayer;
52
class AVCFPlayer;
57
class QTMovieGWorld;
53
class QTMovieGWorld;
58
class QTMovieVisualContext;
54
class QTMovieVisualContext;
- a/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h -14 / +8 lines
Lines 30-49 a/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h_sec1
30
30
31
#include "MediaPlayerPrivateAVFoundation.h"
31
#include "MediaPlayerPrivateAVFoundation.h"
32
32
33
#ifdef __OBJC__
33
OBJC_CLASS AVAsset;
34
@class AVAsset;
34
OBJC_CLASS AVPlayer;
35
@class AVPlayer;
35
OBJC_CLASS AVPlayerItem;
36
@class AVPlayerItem;
36
OBJC_CLASS AVPlayerLayer;
37
@class AVPlayerLayer;
37
OBJC_CLASS AVAssetImageGenerator;
38
@class AVAssetImageGenerator;
38
OBJC_CLASS WebCoreAVFMovieObserver;
39
@class WebCoreAVFMovieObserver;
39
40
#else
40
#ifndef __OBJC__
41
class AVAsset;
42
class AVPlayer;
43
class AVPlayerItem;
44
class AVPlayerLayer;
45
class AVAssetImageGenerator;
46
class WebCoreAVFMovieObserver;
47
typedef struct objc_object *id;
41
typedef struct objc_object *id;
48
#endif
42
#endif
49
43
- a/Source/WebCore/platform/graphics/ca/PlatformCAAnimation.h -5 / +1 lines
Lines 36-46 a/Source/WebCore/platform/graphics/ca/PlatformCAAnimation.h_sec1
36
#include <wtf/Vector.h>
36
#include <wtf/Vector.h>
37
37
38
#if PLATFORM(MAC)
38
#if PLATFORM(MAC)
39
#ifdef __OBJC__
39
OBJC_CLASS CAPropertyAnimation;
40
@class CAPropertyAnimation;
41
#else
42
class CAPropertyAnimation;
43
#endif
44
typedef CAPropertyAnimation* PlatformAnimationRef;
40
typedef CAPropertyAnimation* PlatformAnimationRef;
45
#elif PLATFORM(WIN)
41
#elif PLATFORM(WIN)
46
typedef struct _CACFAnimation* CACFAnimationRef;
42
typedef struct _CACFAnimation* CACFAnimationRef;
- a/Source/WebCore/platform/graphics/ca/mac/TileCache.h -9 / +3 lines
Lines 31-45 a/Source/WebCore/platform/graphics/ca/mac/TileCache.h_sec1
31
#include <wtf/PassOwnPtr.h>
31
#include <wtf/PassOwnPtr.h>
32
#include <wtf/RetainPtr.h>
32
#include <wtf/RetainPtr.h>
33
33
34
#ifdef __OBJC__
34
OBJC_CLASS CALayer;
35
@class CALayer;
35
OBJC_CLASS WebTileCacheLayer;
36
@class WebTileCacheLayer;
36
OBJC_CLASS WebTileLayer;
37
@class WebTileLayer;
38
#else
39
class CALayer;
40
class WebTileCacheLayer;
41
class WebTileLayer;
42
#endif
43
37
44
namespace WebCore {
38
namespace WebCore {
45
39
- a/Source/WebCore/platform/graphics/mac/ColorMac.h -5 / +1 lines
Lines 31-41 a/Source/WebCore/platform/graphics/mac/ColorMac.h_sec1
31
31
32
#include "Color.h"
32
#include "Color.h"
33
33
34
#ifdef __OBJC__
34
OBJC_CLASS NSColor;
35
@class NSColor;
36
#else
37
class NSColor;
38
#endif
39
35
40
namespace WebCore {
36
namespace WebCore {
41
    
37
    
- a/Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.h -12 / +8 lines
Lines 35-56 a/Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.h_sec1
35
35
36
#ifdef __OBJC__
36
#ifdef __OBJC__
37
#import <QTKit/QTTime.h>
37
#import <QTKit/QTTime.h>
38
@class QTMovie;
39
@class QTMovieView;
40
@class QTMovieLayer;
41
@class QTVideoRendererWebKitOnly;
42
@class WebCoreMovieObserver;
43
#else
38
#else
44
class NSDictionary;
45
class NSMutableDictionary;
46
class QTMovie;
47
class QTMovieView;
48
class QTTime;
39
class QTTime;
49
class QTMovieLayer;
50
class QTVideoRendererWebKitOnly;
51
class WebCoreMovieObserver;
52
#endif
40
#endif
53
41
42
OBJC_CLASS NSDictionary;
43
OBJC_CLASS NSMutableDictionary;
44
OBJC_CLASS QTMovie;
45
OBJC_CLASS QTMovieView;
46
OBJC_CLASS QTMovieLayer;
47
OBJC_CLASS QTVideoRendererWebKitOnly;
48
OBJC_CLASS WebCoreMovieObserver;
49
54
#ifndef DRAW_FRAME_RATE
50
#ifndef DRAW_FRAME_RATE
55
#define DRAW_FRAME_RATE 0
51
#define DRAW_FRAME_RATE 0
56
#endif
52
#endif
- a/Source/WebCore/platform/graphics/mac/MediaPlayerProxy.h -5 / +1 lines
Lines 26-36 a/Source/WebCore/platform/graphics/mac/MediaPlayerProxy.h_sec1
26
#ifndef MediaPlayerProxy_h
26
#ifndef MediaPlayerProxy_h
27
#define MediaPlayerProxy_h
27
#define MediaPlayerProxy_h
28
28
29
#ifdef __OBJC__
29
OBJC_CLASS WebMediaPlayerProxy;
30
@class WebMediaPlayerProxy;
31
#else
32
class WebMediaPlayerProxy;
33
#endif
34
30
35
enum MediaPlayerProxyNotificationType {
31
enum MediaPlayerProxyNotificationType {
36
32
- a/Source/WebCore/platform/mac/ClipboardMac.h -7 / +2 lines
Lines 30-42 a/Source/WebCore/platform/mac/ClipboardMac.h_sec1
30
#include "Clipboard.h"
30
#include "Clipboard.h"
31
#include <wtf/RetainPtr.h>
31
#include <wtf/RetainPtr.h>
32
32
33
#ifdef __OBJC__
33
OBJC_CLASS NSImage;
34
@class NSImage;
34
OBJC_CLASS NSPasteboard;
35
@class NSPasteboard;
36
#else
37
class NSImage;
38
class NSPasteboard;
39
#endif
40
35
41
namespace WebCore {
36
namespace WebCore {
42
37
- a/Source/WebCore/platform/mac/LocalCurrentGraphicsContext.h -5 / +1 lines
Lines 24-34 a/Source/WebCore/platform/mac/LocalCurrentGraphicsContext.h_sec1
24
#include "skia/ext/skia_utils_mac.h"
24
#include "skia/ext/skia_utils_mac.h"
25
#endif
25
#endif
26
26
27
#ifdef __OBJC__
27
OBJC_CLASS NSGraphicsContext;
28
@class NSGraphicsContext;
29
#else
30
class NSGraphicsContext;
31
#endif
32
28
33
namespace WebCore {
29
namespace WebCore {
34
30
- a/Source/WebCore/platform/mac/PasteboardHelper.h -5 / +1 lines
Lines 34-44 a/Source/WebCore/platform/mac/PasteboardHelper.h_sec1
34
34
35
#import <wtf/Forward.h>
35
#import <wtf/Forward.h>
36
36
37
#ifdef __OBJC__
37
OBJC_CLASS DOMDocumentFragment;
38
@class DOMDocumentFragment;
39
#else
40
class DOMDocumentFragment;
41
#endif
42
38
43
namespace WebCore {
39
namespace WebCore {
44
40
- a/Source/WebCore/platform/mac/PopupMenuMac.h -5 / +1 lines
Lines 26-36 a/Source/WebCore/platform/mac/PopupMenuMac.h_sec1
26
#include <wtf/RefCounted.h>
26
#include <wtf/RefCounted.h>
27
#include <wtf/RetainPtr.h>
27
#include <wtf/RetainPtr.h>
28
28
29
#ifdef __OBJC__
29
OBJC_CLASS NSPopUpButtonCell;
30
@class NSPopUpButtonCell;
31
#else
32
class NSPopUpButtonCell;
33
#endif
34
30
35
namespace WebCore {
31
namespace WebCore {
36
32
- a/Source/WebCore/platform/mac/ScrollAnimatorMac.h -9 / +3 lines
Lines 36-50 a/Source/WebCore/platform/mac/ScrollAnimatorMac.h_sec1
36
#include "Timer.h"
36
#include "Timer.h"
37
#include <wtf/RetainPtr.h>
37
#include <wtf/RetainPtr.h>
38
38
39
#ifdef __OBJC__
39
OBJC_CLASS WebScrollAnimationHelperDelegate;
40
@class WebScrollAnimationHelperDelegate;
40
OBJC_CLASS WebScrollbarPainterControllerDelegate;
41
@class WebScrollbarPainterControllerDelegate;
41
OBJC_CLASS WebScrollbarPainterDelegate;
42
@class WebScrollbarPainterDelegate;
43
#else
44
class WebScrollAnimationHelperDelegate;
45
class WebScrollbarPainterControllerDelegate;
46
class WebScrollbarPainterDelegate;
47
#endif
48
42
49
typedef id ScrollbarPainterController;
43
typedef id ScrollbarPainterController;
50
44
- a/Source/WebCore/platform/mac/WebCoreSystemInterface.h -50 / +23 lines
Lines 77-132 typedef struct _CFURLRequest* CFMutableURLRequestRef; a/Source/WebCore/platform/mac/WebCoreSystemInterface.h_sec1
77
typedef const struct _CFURLRequest* CFURLRequestRef;
77
typedef const struct _CFURLRequest* CFURLRequestRef;
78
#endif
78
#endif
79
79
80
#ifdef __OBJC__
80
OBJC_CLASS AVAsset;
81
@class AVAsset;
81
OBJC_CLASS NSArray;
82
@class NSArray;
82
OBJC_CLASS NSButtonCell;
83
@class NSButtonCell;
83
OBJC_CLASS NSControl;
84
@class NSControl;
84
OBJC_CLASS NSCursor;
85
@class NSCursor;
85
OBJC_CLASS NSData;
86
@class NSData;
86
OBJC_CLASS NSDate;
87
@class NSDate;
87
OBJC_CLASS NSEvent;
88
@class NSEvent;
88
OBJC_CLASS NSFont;
89
@class NSFont;
89
OBJC_CLASS NSHTTPCookie;
90
@class NSHTTPCookie;
90
OBJC_CLASS NSImage;
91
@class NSImage;
91
OBJC_CLASS NSMenu;
92
@class NSMenu;
92
OBJC_CLASS NSMutableURLRequest;
93
@class NSMutableURLRequest;
93
OBJC_CLASS NSString;
94
@class NSString;
94
OBJC_CLASS NSTextFieldCell;
95
@class NSTextFieldCell;
95
OBJC_CLASS NSURL;
96
@class NSURL;
96
OBJC_CLASS NSURLConnection;
97
@class NSURLConnection;
97
OBJC_CLASS NSURLRequest;
98
@class NSURLRequest;
98
OBJC_CLASS NSURLResponse;
99
@class NSURLResponse;
99
OBJC_CLASS NSView;
100
@class NSView;
100
OBJC_CLASS NSWindow;
101
@class NSWindow;
101
OBJC_CLASS QTMovie;
102
@class QTMovie;
102
OBJC_CLASS QTMovieView;
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
130
103
131
extern "C" {
104
extern "C" {
132
105
- a/Source/WebCore/platform/network/ResourceHandle.h -10 / +5 lines
Lines 52-67 typedef LPVOID HINTERNET; a/Source/WebCore/platform/network/ResourceHandle.h_sec1
52
#endif
52
#endif
53
53
54
#if PLATFORM(MAC)
54
#if PLATFORM(MAC)
55
#ifdef __OBJC__
55
OBJC_CLASS NSData;
56
@class NSData;
56
OBJC_CLASS NSError;
57
@class NSError;
57
OBJC_CLASS NSURLConnection;
58
@class NSURLConnection;
58
OBJC_CLASS WebCoreResourceHandleAsDelegate;
59
@class WebCoreResourceHandleAsDelegate;
59
#ifndef __OBJC__
60
#else
61
class NSData;
62
class NSError;
63
class NSURLConnection;
64
class WebCoreResourceHandleAsDelegate;
65
typedef struct objc_object *id;
60
typedef struct objc_object *id;
66
#endif
61
#endif
67
#endif
62
#endif
- a/Source/WebCore/platform/network/ResourceHandleClient.h -5 / +1 lines
Lines 40-50 a/Source/WebCore/platform/network/ResourceHandleClient.h_sec1
40
#endif
40
#endif
41
41
42
#if PLATFORM(MAC)
42
#if PLATFORM(MAC)
43
#ifdef __OBJC__
43
OBJC_CLASS NSCachedURLResponse;
44
@class NSCachedURLResponse;
45
#else
46
class NSCachedURLResponse;
47
#endif
48
#endif
44
#endif
49
45
50
namespace WebCore {
46
namespace WebCore {
- a/Source/WebCore/platform/network/ResourceHandleInternal.h -7 / +2 lines
Lines 61-73 class QNetworkReplyHandler; a/Source/WebCore/platform/network/ResourceHandleInternal.h_sec1
61
#endif
61
#endif
62
62
63
#if PLATFORM(MAC)
63
#if PLATFORM(MAC)
64
#ifdef __OBJC__
64
OBJC_CLASS NSURLAuthenticationChallenge;
65
@class NSURLAuthenticationChallenge;
65
OBJC_CLASS NSURLConnection;
66
@class NSURLConnection;
67
#else
68
class NSURLAuthenticationChallenge;
69
class NSURLConnection;
70
#endif
71
#endif
66
#endif
72
67
73
// The allocations and releases in ResourceHandleInternal are
68
// The allocations and releases in ResourceHandleInternal are
- a/Source/WebCore/platform/network/cf/AuthenticationChallenge.h -3 / +6 lines
Lines 31-44 a/Source/WebCore/platform/network/cf/AuthenticationChallenge.h_sec1
31
#include <wtf/RefPtr.h>
31
#include <wtf/RefPtr.h>
32
32
33
#if USE(CFNETWORK)
33
#if USE(CFNETWORK)
34
34
typedef struct _CFURLAuthChallenge* CFURLAuthChallengeRef;
35
typedef struct _CFURLAuthChallenge* CFURLAuthChallengeRef;
36
35
#else
37
#else
38
36
#ifndef __OBJC__
39
#ifndef __OBJC__
37
typedef struct objc_object *id;
40
typedef struct objc_object *id;
38
class NSURLAuthenticationChallenge;
39
#else
40
@class NSURLAuthenticationChallenge;
41
#endif
41
#endif
42
43
OBJC_CLASS NSURLAuthenticationChallenge;
44
42
#endif
45
#endif
43
46
44
namespace WebCore {
47
namespace WebCore {
- a/Source/WebCore/platform/network/cf/ResourceError.h -4 / +2 lines
Lines 37-46 a/Source/WebCore/platform/network/cf/ResourceError.h_sec1
37
#include <wincrypt.h> // windows.h must be included before wincrypt.h.
37
#include <wincrypt.h> // windows.h must be included before wincrypt.h.
38
#endif
38
#endif
39
39
40
#ifdef __OBJC__
40
#if PLATFORM(MAC)
41
@class NSError;
41
OBJC_CLASS NSError;
42
#else
43
class NSError;
44
#endif
42
#endif
45
43
46
namespace WebCore {
44
namespace WebCore {
- a/Source/WebCore/platform/network/cf/ResourceRequest.h -5 / +1 lines
Lines 34-44 a/Source/WebCore/platform/network/cf/ResourceRequest.h_sec1
34
typedef const struct _CFURLRequest* CFURLRequestRef;
34
typedef const struct _CFURLRequest* CFURLRequestRef;
35
#endif
35
#endif
36
36
37
#ifdef __OBJC__
37
OBJC_CLASS NSURLRequest;
38
@class NSURLRequest;
39
#else
40
class NSURLRequest;
41
#endif
42
38
43
#if USE(CFURLSTORAGESESSIONS) && (defined(BUILDING_ON_SNOW_LEOPARD) || defined(BUILDING_ON_LEOPARD))
39
#if USE(CFURLSTORAGESESSIONS) && (defined(BUILDING_ON_SNOW_LEOPARD) || defined(BUILDING_ON_LEOPARD))
44
typedef struct __CFURLStorageSession* CFURLStorageSessionRef;
40
typedef struct __CFURLStorageSession* CFURLStorageSessionRef;
- a/Source/WebCore/platform/network/cf/ResourceResponse.h -5 / +1 lines
Lines 33-43 a/Source/WebCore/platform/network/cf/ResourceResponse.h_sec1
33
typedef struct _CFURLResponse* CFURLResponseRef;
33
typedef struct _CFURLResponse* CFURLResponseRef;
34
#endif
34
#endif
35
35
36
#ifdef __OBJC__
36
OBJC_CLASS NSURLResponse;
37
@class NSURLResponse;
38
#else
39
class NSURLResponse;
40
#endif
41
37
42
namespace WebCore {
38
namespace WebCore {
43
39
- a/Source/WebCore/rendering/RenderThemeMac.h -6 / +2 lines
Lines 27-42 a/Source/WebCore/rendering/RenderThemeMac.h_sec1
27
#import <wtf/HashMap.h>
27
#import <wtf/HashMap.h>
28
#import <wtf/RetainPtr.h>
28
#import <wtf/RetainPtr.h>
29
29
30
class RenderProgress;
31
30
32
#ifdef __OBJC__
31
OBJC_CLASS WebCoreRenderThemeNotificationObserver;
33
@class WebCoreRenderThemeNotificationObserver;
34
#else
35
class WebCoreRenderThemeNotificationObserver;
36
#endif
37
32
38
namespace WebCore {
33
namespace WebCore {
39
34
35
class RenderProgress;
40
class RenderStyle;
36
class RenderStyle;
41
37
42
class RenderThemeMac : public RenderTheme {
38
class RenderThemeMac : public RenderTheme {
- a/Source/WebKit2/WebProcess/WebCoreSupport/WebDragClient.h -7 / +2 lines
Lines 29-41 a/Source/WebKit2/WebProcess/WebCoreSupport/WebDragClient.h_sec1
29
#include <WebCore/DragClient.h>
29
#include <WebCore/DragClient.h>
30
30
31
#if PLATFORM(MAC)
31
#if PLATFORM(MAC)
32
#ifdef __OBJC__
32
OBJC_CLASS WKPasteboardFilePromiseOwner;
33
@class WKPasteboardFilePromiseOwner;
33
OBJC_CLASS WKPasteboardOwner;
34
@class WKPasteboardOwner;
35
#else
36
class WKPasteboardFilePromiseOwner;
37
class WKPasteboardOwner;
38
#endif
39
#endif
34
#endif
40
35
41
namespace WebKit {
36
namespace WebKit {
- a/Source/WebKit2/config.h -6 lines
Lines 61-72 static const type& name() \ a/Source/WebKit2/config.h_sec1
61
61
62
#if PLATFORM(MAC)
62
#if PLATFORM(MAC)
63
63
64
#ifdef __OBJC__
65
#define OBJC_CLASS @class
66
#else
67
#define OBJC_CLASS class
68
#endif
69
70
#if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
64
#if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
71
#define ENABLE_WEB_PROCESS_SANDBOX 1
65
#define ENABLE_WEB_PROCESS_SANDBOX 1
72
#endif
66
#endif

Return to Bug 76485