1/*
2 * Copyright (C) 2010, 2011 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#endif
36
37#if defined(WTF_USE_SOUP)
38#include <WebKit/WKBaseSoup.h>
39#endif
40
41#if defined(BUILDING_EFL__)
42#include <WebKit/WKBaseEfl.h>
43#endif
44
45#if defined(__APPLE__)
46#include <WebKit/WKBaseMac.h>
47#endif
48
49/* WebKit2 shared types */
50
51typedef uint32_t WKTypeID;
52typedef const void* WKTypeRef;
53
54typedef const struct OpaqueWKArray* WKArrayRef;
55typedef struct OpaqueWKArray* WKMutableArrayRef;
56
57typedef const struct OpaqueWKDictionary* WKDictionaryRef;
58typedef struct OpaqueWKDictionary* WKMutableDictionaryRef;
59
60typedef const struct OpaqueWKBoolean* WKBooleanRef;
61typedef const struct OpaqueWKCertificateInfo* WKCertificateInfoRef;
62typedef const struct OpaqueWKConnection* WKConnectionRef;
63typedef const struct OpaqueWKContextMenuItem* WKContextMenuItemRef;
64typedef const struct OpaqueWKData* WKDataRef;
65typedef const struct OpaqueWKDouble* WKDoubleRef;
66typedef const struct OpaqueWKError* WKErrorRef;
67typedef const struct OpaqueWKGraphicsContext* WKGraphicsContextRef;
68typedef const struct OpaqueWKImage* WKImageRef;
69typedef const struct OpaqueWKPointRef* WKPointRef;
70typedef const struct OpaqueWKRectRef* WKRectRef;
71typedef const struct OpaqueWKRenderLayer* WKRenderLayerRef;
72typedef const struct OpaqueWKRenderObject* WKRenderObjectRef;
73typedef const struct OpaqueWKSecurityOrigin* WKSecurityOriginRef;
74typedef const struct OpaqueWKSerializedScriptValue* WKSerializedScriptValueRef;
75typedef const struct OpaqueWKSizeRef* WKSizeRef;
76typedef const struct OpaqueWKString* WKStringRef;
77typedef const struct OpaqueWKUInt64* WKUInt64Ref;
78typedef const struct OpaqueWKURL* WKURLRef;
79typedef const struct OpaqueWKURLRequest* WKURLRequestRef;
80typedef const struct OpaqueWKURLResponse* WKURLResponseRef;
81typedef const struct OpaqueWKUserContentURLPattern* WKUserContentURLPatternRef;
82typedef const struct OpaqueWKWebArchive* WKWebArchiveRef;
83typedef const struct OpaqueWKWebArchiveResource* WKWebArchiveResourceRef;
84
85/* WebKit2 main API types */
86
87typedef const struct OpaqueWKApplicationCacheManager* WKApplicationCacheManagerRef;
88typedef const struct OpaqueWKAuthenticationChallenge* WKAuthenticationChallengeRef;
89typedef const struct OpaqueWKAuthenticationDecisionListener* WKAuthenticationDecisionListenerRef;
90typedef const struct OpaqueWKBackForwardList* WKBackForwardListRef;
91typedef const struct OpaqueWKBackForwardListItem* WKBackForwardListItemRef;
92typedef const struct OpaqueWKBatteryManager* WKBatteryManagerRef;
93typedef const struct OpaqueWKBatteryStatus* WKBatteryStatusRef;
94typedef const struct OpaqueWKResourceCacheManager* WKResourceCacheManagerRef;
95typedef const struct OpaqueWKColorPickerResultListener* WKColorPickerResultListenerRef;
96typedef const struct OpaqueWKContext* WKContextRef;
97typedef const struct OpaqueWKContextConfiguration* WKContextConfigurationRef;
98typedef const struct OpaqueWKCookieManager* WKCookieManagerRef;
99typedef const struct OpaqueWKCredential* WKCredentialRef;
100typedef const struct OpaqueWKDatabaseManager* WKDatabaseManagerRef;
101typedef const struct OpaqueWKDownload* WKDownloadRef;
102typedef const struct OpaqueWKFormSubmissionListener* WKFormSubmissionListenerRef;
103typedef const struct OpaqueWKFrame* WKFrameRef;
104typedef const struct OpaqueWKFramePolicyListener* WKFramePolicyListenerRef;
105typedef const struct OpaqueWKGeolocationManager* WKGeolocationManagerRef;
106typedef const struct OpaqueWKGeolocationPermissionRequest* WKGeolocationPermissionRequestRef;
107typedef const struct OpaqueWKGeolocationPosition* WKGeolocationPositionRef;
108typedef const struct OpaqueWKGrammarDetail* WKGrammarDetailRef;
109typedef const struct OpaqueWKHitTestResult* WKHitTestResultRef;
110typedef const struct OpaqueWKIconDatabase* WKIconDatabaseRef;
111typedef const struct OpaqueWKInspector* WKInspectorRef;
112typedef const struct OpaqueWKKeyValueStorageManager* WKKeyValueStorageManagerRef;
113typedef const struct OpaqueWKMediaCacheManager* WKMediaCacheManagerRef;
114typedef const struct OpaqueWKNavigationData* WKNavigationDataRef;
115typedef const struct OpaqueWKNotification* WKNotificationRef;
116typedef const struct OpaqueWKNotificationManager* WKNotificationManagerRef;
117typedef const struct OpaqueWKNotificationPermissionRequest* WKNotificationPermissionRequestRef;
118typedef const struct OpaqueWKNotificationProvider* WKNotificationProviderRef;
119typedef const struct OpaqueWKOpenPanelParameters* WKOpenPanelParametersRef;
120typedef const struct OpaqueWKOpenPanelResultListener* WKOpenPanelResultListenerRef;
121typedef const struct OpaqueWKOriginDataManager* WKOriginDataManagerRef;
122typedef const struct OpaqueWKPage* WKPageRef;
123typedef const struct OpaqueWKPageGroup* WKPageGroupRef;
124typedef const struct OpaqueWKPluginSiteDataManager* WKPluginSiteDataManagerRef;
125typedef const struct OpaqueWKPreferences* WKPreferencesRef;
126typedef const struct OpaqueWKProtectionSpace* WKProtectionSpaceRef;
127typedef const struct OpaqueWKTextChecker* WKTextCheckerRef;
128typedef const struct OpaqueWKSession* WKSessionRef;
129typedef const struct OpaqueWKSessionState* WKSessionStateRef;
130typedef const struct OpaqueWKVibration* WKVibrationRef;
131typedef const struct OpaqueWKViewportAttributes* WKViewportAttributesRef;
132
133/* WebKit2 Bundle types */
134
135typedef const struct OpaqueWKBundle* WKBundleRef;
136typedef const struct OpaqueWKBundleBackForwardList* WKBundleBackForwardListRef;
137typedef const struct OpaqueWKBundleBackForwardListItem* WKBundleBackForwardListItemRef;
138typedef const struct OpaqueWKBundleDOMCSSStyleDeclaration* WKBundleCSSStyleDeclarationRef;
139typedef const struct OpaqueWKBundleDOMWindowExtension* WKBundleDOMWindowExtensionRef;
140typedef const struct OpaqueWKBundleFrame* WKBundleFrameRef;
141typedef const struct OpaqueWKBundleHitTestResult* WKBundleHitTestResultRef;
142typedef const struct OpaqueWKBundleInspector* WKBundleInspectorRef;
143typedef const struct OpaqueWKBundleNavigationAction* WKBundleNavigationActionRef;
144typedef const struct OpaqueWKBundleNodeHandle* WKBundleNodeHandleRef;
145typedef const struct OpaqueWKBundlePage* WKBundlePageRef;
146typedef const struct OpaqueWKBundlePageBanner* WKBundlePageBannerRef;
147typedef const struct OpaqueWKBundlePageGroup* WKBundlePageGroupRef;
148typedef const struct OpaqueWKBundlePageOverlay* WKBundlePageOverlayRef;
149typedef const struct OpaqueWKBundleRangeHandle* WKBundleRangeHandleRef;
150typedef const struct OpaqueWKBundleScriptWorld* WKBundleScriptWorldRef;
151
152#endif /* WKBase_h */
153