1 | /* |
2 | * Copyright (C) 2010-2017 Apple Inc. All rights reserved. |
3 | * Portions Copyright (c) 2010 Motorola Mobility, Inc. All rights reserved. |
4 | * |
5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions |
7 | * are met: |
8 | * 1. Redistributions of source code must retain the above copyright |
9 | * notice, this list of conditions and the following disclaimer. |
10 | * 2. Redistributions in binary form must reproduce the above copyright |
11 | * notice, this list of conditions and the following disclaimer in the |
12 | * documentation and/or other materials provided with the distribution. |
13 | * |
14 | * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' |
15 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
16 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
17 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS |
18 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
19 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
20 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
21 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
22 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
23 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
24 | * THE POSSIBILITY OF SUCH DAMAGE. |
25 | */ |
26 | |
27 | #ifndef WKBase_h |
28 | #define WKBase_h |
29 | |
30 | #include <WebKit/WKDeclarationSpecifiers.h> |
31 | #include <stdint.h> |
32 | |
33 | #if defined(BUILDING_GTK__) |
34 | #include <WebKit/WKBaseGtk.h> |
35 | #elif defined(BUILDING_WPE__) |
36 | #include <WebKit/WKBaseWPE.h> |
37 | #elif defined(__APPLE__) |
38 | #include <WebKit/WKBaseMac.h> |
39 | #elif defined(_WIN32) |
40 | #include <WebKit/WKBaseWin.h> |
41 | #endif |
42 | |
43 | /* WebKit2 shared types */ |
44 | |
45 | typedef uint32_t WKTypeID; |
46 | typedef const void* WKTypeRef; |
47 | |
48 | typedef const struct OpaqueWKArray* WKArrayRef; |
49 | typedef struct OpaqueWKArray* WKMutableArrayRef; |
50 | |
51 | typedef const struct OpaqueWKDictionary* WKDictionaryRef; |
52 | typedef struct OpaqueWKDictionary* WKMutableDictionaryRef; |
53 | |
54 | typedef const struct OpaqueWKBoolean* WKBooleanRef; |
55 | typedef const struct OpaqueWKCertificateInfo* WKCertificateInfoRef; |
56 | typedef const struct OpaqueWKConnection* WKConnectionRef; |
57 | typedef const struct * ; |
58 | typedef const struct OpaqueWKData* WKDataRef; |
59 | typedef const struct OpaqueWKDouble* WKDoubleRef; |
60 | typedef const struct OpaqueWKError* WKErrorRef; |
61 | typedef const struct OpaqueWKGraphicsContext* WKGraphicsContextRef; |
62 | typedef const struct OpaqueWKImage* WKImageRef; |
63 | typedef const struct OpaqueWKPointRef* WKPointRef; |
64 | typedef const struct OpaqueWKRectRef* WKRectRef; |
65 | typedef const struct OpaqueWKRenderLayer* WKRenderLayerRef; |
66 | typedef const struct OpaqueWKRenderObject* WKRenderObjectRef; |
67 | typedef const struct OpaqueWKSecurityOrigin* WKSecurityOriginRef; |
68 | typedef const struct OpaqueWKSerializedScriptValue* WKSerializedScriptValueRef; |
69 | typedef const struct OpaqueWKSizeRef* WKSizeRef; |
70 | typedef const struct OpaqueWKString* WKStringRef; |
71 | typedef const struct OpaqueWKUInt64* WKUInt64Ref; |
72 | typedef const struct OpaqueWKURL* WKURLRef; |
73 | typedef const struct OpaqueWKURLRequest* WKURLRequestRef; |
74 | typedef const struct OpaqueWKURLResponse* WKURLResponseRef; |
75 | typedef const struct OpaqueWKUserContentURLPattern* WKUserContentURLPatternRef; |
76 | typedef const struct OpaqueWKWebArchive* WKWebArchiveRef; |
77 | typedef const struct OpaqueWKWebArchiveResource* WKWebArchiveResourceRef; |
78 | |
79 | /* WebKit2 main API types */ |
80 | |
81 | typedef const struct OpaqueWKApplicationCacheManager* WKApplicationCacheManagerRef; |
82 | typedef const struct OpaqueWKAuthenticationChallenge* WKAuthenticationChallengeRef; |
83 | typedef const struct OpaqueWKAuthenticationDecisionListener* WKAuthenticationDecisionListenerRef; |
84 | typedef const struct OpaqueWKBackForwardList* WKBackForwardListRef; |
85 | typedef const struct OpaqueWKBackForwardListItem* WKBackForwardListItemRef; |
86 | typedef const struct OpaqueWKResourceCacheManager* WKResourceCacheManagerRef; |
87 | typedef const struct OpaqueWKColorPickerResultListener* WKColorPickerResultListenerRef; |
88 | typedef const struct OpaqueWKContext* WKContextRef; |
89 | typedef const struct OpaqueWKContextConfiguration* WKContextConfigurationRef; |
90 | typedef const struct * ; |
91 | typedef const struct OpaqueWKCookieManager* WKCookieManagerRef; |
92 | typedef const struct OpaqueWKCredential* WKCredentialRef; |
93 | typedef const struct OpaqueWKDownload* WKDownloadRef; |
94 | typedef const struct OpaqueWKFormSubmissionListener* WKFormSubmissionListenerRef; |
95 | typedef const struct OpaqueWKFrameHandle* WKFrameHandleRef; |
96 | typedef const struct OpaqueWKFrameInfo* WKFrameInfoRef; |
97 | typedef const struct OpaqueWKFrame* WKFrameRef; |
98 | typedef const struct OpaqueWKFramePolicyListener* WKFramePolicyListenerRef; |
99 | typedef const struct OpaqueWKGeolocationManager* WKGeolocationManagerRef; |
100 | typedef const struct OpaqueWKGeolocationPermissionRequest* WKGeolocationPermissionRequestRef; |
101 | typedef const struct OpaqueWKGeolocationPosition* WKGeolocationPositionRef; |
102 | typedef const struct OpaqueWKGrammarDetail* WKGrammarDetailRef; |
103 | typedef const struct OpaqueWKHitTestResult* WKHitTestResultRef; |
104 | typedef const struct OpaqueWKIconDatabase* WKIconDatabaseRef; |
105 | typedef const struct OpaqueWKInspector* WKInspectorRef; |
106 | typedef const struct OpaqueWKKeyValueStorageManager* WKKeyValueStorageManagerRef; |
107 | typedef const struct OpaqueWKMediaSessionFocusManager* WKMediaSessionFocusManagerRef; |
108 | typedef const struct OpaqueWKMediaSessionMetadata* WKMediaSessionMetadataRef; |
109 | typedef const struct OpaqueWKNavigationAction* WKNavigationActionRef; |
110 | typedef const struct OpaqueWKNavigationData* WKNavigationDataRef; |
111 | typedef const struct OpaqueWKNavigation* WKNavigationRef; |
112 | typedef const struct OpaqueWKNavigationResponse* WKNavigationResponseRef; |
113 | typedef const struct OpaqueWKNotification* WKNotificationRef; |
114 | typedef const struct OpaqueWKNotificationManager* WKNotificationManagerRef; |
115 | typedef const struct OpaqueWKNotificationPermissionRequest* WKNotificationPermissionRequestRef; |
116 | typedef const struct OpaqueWKNotificationProvider* WKNotificationProviderRef; |
117 | typedef const struct OpaqueWKOpenPanelParameters* WKOpenPanelParametersRef; |
118 | typedef const struct OpaqueWKOpenPanelResultListener* WKOpenPanelResultListenerRef; |
119 | typedef const struct OpaqueWKPage* ; |
120 | typedef const struct OpaqueWKPageConfiguration* WKPageConfigurationRef; |
121 | typedef const struct OpaqueWKPageGroup* WKPageGroupRef; |
122 | typedef const struct OpaqueWKPreferences* WKPreferencesRef; |
123 | typedef const struct OpaqueWKProtectionSpace* WKProtectionSpaceRef; |
124 | typedef const struct * ; |
125 | typedef const struct * ; |
126 | typedef const struct * ; |
127 | typedef const struct * ; |
128 | typedef const struct * ; |
129 | typedef const struct OpaqueWKResourceLoadStatisticsManager* WKResourceLoadStatisticsManagerRef; |
130 | typedef const struct OpaqueWKTextChecker* WKTextCheckerRef; |
131 | typedef const struct OpaqueWKSession* WKSessionRef; |
132 | typedef const struct OpaqueWKSessionState* WKSessionStateRef; |
133 | typedef const struct OpaqueWKUserContentController* WKUserContentControllerRef; |
134 | typedef const struct OpaqueWKUserContentExtensionStore* WKUserContentExtensionStoreRef; |
135 | typedef const struct OpaqueWKUserContentFilter* WKUserContentFilterRef; |
136 | typedef const struct OpaqueWKUserMediaPermissionCheck* WKUserMediaPermissionCheckRef; |
137 | typedef const struct OpaqueWKUserMediaPermissionRequest* WKUserMediaPermissionRequestRef; |
138 | typedef const struct OpaqueWKUserScript* WKUserScriptRef; |
139 | typedef const struct OpaqueWKViewportAttributes* WKViewportAttributesRef; |
140 | typedef const struct OpaqueWKWebsiteDataStore* WKWebsiteDataStoreRef; |
141 | typedef const struct OpaqueWKWebsitePolicies* WKWebsitePoliciesRef; |
142 | typedef const struct OpaqueWKWindowFeatures* WKWindowFeaturesRef; |
143 | |
144 | /* WebKit2 Bundle types */ |
145 | |
146 | typedef const struct OpaqueWKBundle* WKBundleRef; |
147 | typedef const struct OpaqueWKBundleBackForwardList* WKBundleBackForwardListRef; |
148 | typedef const struct OpaqueWKBundleBackForwardListItem* WKBundleBackForwardListItemRef; |
149 | typedef const struct OpaqueWKBundleDOMCSSStyleDeclaration* WKBundleCSSStyleDeclarationRef; |
150 | typedef const struct OpaqueWKBundleDOMWindowExtension* WKBundleDOMWindowExtensionRef; |
151 | typedef const struct OpaqueWKBundleFileHandle* WKBundleFileHandleRef; |
152 | typedef const struct OpaqueWKBundleFrame* WKBundleFrameRef; |
153 | typedef const struct OpaqueWKBundleHitTestResult* WKBundleHitTestResultRef; |
154 | typedef const struct OpaqueWKBundleInspector* WKBundleInspectorRef; |
155 | typedef const struct OpaqueWKBundleNavigationAction* WKBundleNavigationActionRef; |
156 | typedef const struct OpaqueWKBundleNodeHandle* WKBundleNodeHandleRef; |
157 | typedef const struct OpaqueWKBundlePage* ; |
158 | typedef const struct OpaqueWKBundlePageBanner* WKBundlePageBannerRef; |
159 | typedef const struct OpaqueWKBundlePageGroup* WKBundlePageGroupRef; |
160 | typedef const struct OpaqueWKBundlePageOverlay* WKBundlePageOverlayRef; |
161 | typedef const struct OpaqueWKBundleRangeHandle* WKBundleRangeHandleRef; |
162 | typedef const struct OpaqueWKBundleScriptWorld* WKBundleScriptWorldRef; |
163 | |
164 | #endif /* WKBase_h */ |
165 | |