WebKit2 client interfaces should have constant declaring latest version.
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Jun 2011 21:46:23 +0000 (21:46 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Jun 2011 21:46:23 +0000 (21:46 +0000)
Reviewed by Anders Carlsson.

* UIProcess/API/C/WKContext.h:
* UIProcess/API/C/WKCookieManager.h:
* UIProcess/API/C/WKDatabaseManager.h:
* UIProcess/API/C/WKGeolocationManager.h:
* UIProcess/API/C/WKIconDatabase.h:
* UIProcess/API/C/WKPage.h:
* WebProcess/InjectedBundle/API/c/WKBundle.h:
* WebProcess/InjectedBundle/API/c/WKBundlePage.h:
* WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/C/WKContext.h
Source/WebKit2/UIProcess/API/C/WKCookieManager.h
Source/WebKit2/UIProcess/API/C/WKDatabaseManager.h
Source/WebKit2/UIProcess/API/C/WKGeolocationManager.h
Source/WebKit2/UIProcess/API/C/WKIconDatabase.h
Source/WebKit2/UIProcess/API/C/WKPage.h
Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.h
Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.h
Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h

index d11a642..b6b28b7 100644 (file)
@@ -1,3 +1,19 @@
+2011-06-30  Mark Rowe  <mrowe@apple.com>
+
+        Reviewed by Anders Carlsson.
+
+        WebKit2 client interfaces should have constant declaring latest version.
+
+        * UIProcess/API/C/WKContext.h:
+        * UIProcess/API/C/WKCookieManager.h:
+        * UIProcess/API/C/WKDatabaseManager.h:
+        * UIProcess/API/C/WKGeolocationManager.h:
+        * UIProcess/API/C/WKIconDatabase.h:
+        * UIProcess/API/C/WKPage.h:
+        * WebProcess/InjectedBundle/API/c/WKBundle.h:
+        * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
+        * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
+
 2011-06-30  Anders Carlsson  <andersca@apple.com>
 
         Build fix.
index 6e8e4c0..cd289c9 100644 (file)
@@ -51,6 +51,8 @@ struct WKContextInjectedBundleClient {
 };
 typedef struct WKContextInjectedBundleClient WKContextInjectedBundleClient;
 
+enum { kWKContextInjectedBundleClientCurrentVersion = 0 };
+
 // History Client
 typedef void (*WKContextDidNavigateWithNavigationDataCallback)(WKContextRef context, WKPageRef page, WKNavigationDataRef navigationData, WKFrameRef frame, const void *clientInfo);
 typedef void (*WKContextDidPerformClientRedirectCallback)(WKContextRef context, WKPageRef page, WKURLRef sourceURL, WKURLRef destinationURL, WKFrameRef frame, const void *clientInfo);
@@ -69,6 +71,8 @@ struct WKContextHistoryClient {
 };
 typedef struct WKContextHistoryClient WKContextHistoryClient;
 
+enum { kWKContextHistoryClientCurrentVersion = 0 };
+
 // Download Client
 typedef void (*WKContextDownloadDidStartCallback)(WKContextRef context, WKDownloadRef download, const void *clientInfo);
 typedef void (*WKContextDownloadDidReceiveAuthenticationChallengeCallback)(WKContextRef context, WKDownloadRef download, WKAuthenticationChallengeRef authenticationChallenge, const void *clientInfo);
@@ -99,6 +103,8 @@ struct WKContextDownloadClient {
 };
 typedef struct WKContextDownloadClient WKContextDownloadClient;
 
+enum { kWKContextDownloadClientCurrentVersion = 0 };
+
 WK_EXPORT WKTypeID WKContextGetTypeID();
 
 WK_EXPORT WKContextRef WKContextCreate();
index 4da60f4..88f56dc 100644 (file)
@@ -49,6 +49,8 @@ struct WKCookieManagerClient {
 };
 typedef struct WKCookieManagerClient WKCookieManagerClient;
 
+enum { kWKCookieManagerClientCurrentVersion = 0 };
+
 WK_EXPORT WKTypeID WKCookieManagerGetTypeID();
 
 WK_EXPORT void WKCookieManagerSetClient(WKCookieManagerRef cookieManager, const WKCookieManagerClient* client);
index 0a5eff6..820f0f8 100644 (file)
@@ -74,6 +74,8 @@ struct WKDatabaseManagerClient {
 };
 typedef struct WKDatabaseManagerClient WKDatabaseManagerClient;
 
+enum { kWKDatabaseManagerClientCurrentVersion = 0 };
+
 
 WK_EXPORT WKTypeID WKDatabaseManagerGetTypeID();
 
index 07cbd79..bc2bdd9 100644 (file)
@@ -44,6 +44,8 @@ struct WKGeolocationProvider {
 };
 typedef struct WKGeolocationProvider WKGeolocationProvider;
 
+enum { kWKGeolocationProviderCurrentVersion = 0 };
+
 WK_EXPORT WKTypeID WKGeolocationManagerGetTypeID();
 
 WK_EXPORT void WKGeolocationManagerSetProvider(WKGeolocationManagerRef geolocationManager, const WKGeolocationProvider* provider);
index ece3399..45ceec7 100644 (file)
@@ -44,6 +44,8 @@ struct WKIconDatabaseClient {
 };
 typedef struct WKIconDatabaseClient WKIconDatabaseClient;
 
+enum { kWKIconDatabaseClientCurrentVersion = 0 };
+
 WK_EXPORT WKTypeID WKIconDatabaseGetTypeID();
 
 WK_EXPORT void WKIconDatabaseSetIconDatabaseClient(WKIconDatabaseRef iconDatabase, const WKIconDatabaseClient* client);
index 728e7ee..f75763a 100644 (file)
@@ -105,6 +105,8 @@ struct WKPageLoaderClient {
 };
 typedef struct WKPageLoaderClient WKPageLoaderClient;
 
+enum { kWKPageLoaderClientCurrentVersion = 0 };
+
 // Policy Client.
 typedef void (*WKPageDecidePolicyForNavigationActionCallback)(WKPageRef page, WKFrameRef frame, WKFrameNavigationType navigationType, WKEventModifiers modifiers, WKEventMouseButton mouseButton, WKURLRequestRef request, WKFramePolicyListenerRef listener, WKTypeRef userData, const void* clientInfo);
 typedef void (*WKPageDecidePolicyForNewWindowActionCallback)(WKPageRef page, WKFrameRef frame, WKFrameNavigationType navigationType, WKEventModifiers modifiers, WKEventMouseButton mouseButton, WKURLRequestRef request, WKStringRef frameName, WKFramePolicyListenerRef listener, WKTypeRef userData, const void* clientInfo);
@@ -121,6 +123,8 @@ struct WKPagePolicyClient {
 };
 typedef struct WKPagePolicyClient WKPagePolicyClient;
 
+enum { kWKPagePolicyClientCurrentVersion = 0 };
+
 // Form Client.
 typedef void (*WKPageWillSubmitFormCallback)(WKPageRef page, WKFrameRef frame, WKFrameRef sourceFrame, WKDictionaryRef values, WKTypeRef userData, WKFormSubmissionListenerRef listener, const void* clientInfo);
 
@@ -131,6 +135,8 @@ struct WKPageFormClient {
 };
 typedef struct WKPageFormClient WKPageFormClient;
 
+enum { kWKPageFormClientCurrentVersion = 0 };
+
 // Resource Load Client.
 typedef void (*WKPageDidInitiateLoadForResourceCallback)(WKPageRef page, WKFrameRef frame, uint64_t resourceIdentifier, WKURLRequestRef request, bool pageIsProvisionallyLoading, const void* clientInfo);
 typedef void (*WKPageDidSendRequestForResourceCallback)(WKPageRef page, WKFrameRef frame, uint64_t resourceIdentifier, WKURLRequestRef request, WKURLResponseRef redirectResponse, const void* clientInfo);
@@ -151,6 +157,8 @@ struct WKPageResourceLoadClient {
 };
 typedef struct WKPageResourceLoadClient WKPageResourceLoadClient;
 
+enum { kWKPageResourceLoadClientCurrentVersion = 0 };
+
 // UI Client
 typedef WKPageRef (*WKPageCreateNewPageCallback)(WKPageRef page, WKDictionaryRef features, WKEventModifiers modifiers, WKEventMouseButton mouseButton, const void *clientInfo);
 typedef void (*WKPageRunJavaScriptAlertCallback)(WKPageRef page, WKStringRef alertText, WKFrameRef frame, const void *clientInfo);
@@ -232,6 +240,8 @@ struct WKPageUIClient {
 };
 typedef struct WKPageUIClient WKPageUIClient;
 
+enum { kWKPageUIClientCurrentVersion = 0 };
+
 // Find client.
 typedef void (*WKPageDidFindStringCallback)(WKPageRef page, WKStringRef string, unsigned matchCount, const void* clientInfo);
 typedef void (*WKPageDidFailToFindStringCallback)(WKPageRef page, WKStringRef string, const void* clientInfo);
@@ -246,6 +256,8 @@ struct WKPageFindClient {
 };
 typedef struct WKPageFindClient WKPageFindClient;
 
+enum { kWKPageFindClientCurrentVersion = 0 };
+
 enum {
     kWKMoreThanMaximumMatchCount = -1
 };
@@ -262,6 +274,8 @@ struct WKPageContextMenuClient {
 };
 typedef struct WKPageContextMenuClient WKPageContextMenuClient;
 
+enum { kWKPageContextMenuClientCurrentVersion = 0 };
+
 WK_EXPORT WKTypeID WKPageGetTypeID();
 
 WK_EXPORT WKContextRef WKPageGetContext(WKPageRef page);
index 24c53b4..8c25c13 100644 (file)
@@ -49,6 +49,8 @@ struct WKBundleClient {
 };
 typedef struct WKBundleClient WKBundleClient;
 
+enum { kWKBundleClientCurrentVersion = 0 };
+
 WK_EXPORT WKTypeID WKBundleGetTypeID();
 
 WK_EXPORT void WKBundleSetClient(WKBundleRef bundle, WKBundleClient * client);
index 00e2046..554dede 100644 (file)
@@ -125,6 +125,8 @@ struct WKBundlePageLoaderClient {
 };
 typedef struct WKBundlePageLoaderClient WKBundlePageLoaderClient;
 
+enum { kWKBundlePageLoaderClientCurrentVersion = 0 };
+
 enum {
     WKBundlePagePolicyActionPassThrough,
     WKBundlePagePolicyActionUse
@@ -147,6 +149,8 @@ struct WKBundlePagePolicyClient {
 };
 typedef struct WKBundlePagePolicyClient WKBundlePagePolicyClient;
 
+enum { kWKBundlePagePolicyClientCurrentVersion = 0 };
+
 // Resource Load Client
 typedef void (*WKBundlePageDidInitiateLoadForResourceCallback)(WKBundlePageRef, WKBundleFrameRef, uint64_t resourceIdentifier, WKURLRequestRef, bool pageIsProvisionallyLoading, const void* clientInfo);
 typedef WKURLRequestRef (*WKBundlePageWillSendRequestForFrameCallback)(WKBundlePageRef, WKBundleFrameRef, uint64_t resourceIdentifier, WKURLRequestRef, WKURLResponseRef redirectResponse, const void *clientInfo);
@@ -170,6 +174,8 @@ struct WKBundlePageResourceLoadClient {
 };
 typedef struct WKBundlePageResourceLoadClient WKBundlePageResourceLoadClient;
 
+enum { kWKBundlePageResourceLoadClientCurrentVersion = 0 };
+
 enum {
     WKBundlePageUIElementVisibilityUnknown,
     WKBundlePageUIElementVisible,
@@ -212,6 +218,8 @@ struct WKBundlePageUIClient {
 };
 typedef struct WKBundlePageUIClient WKBundlePageUIClient;
 
+enum { kWKBundlePageUIClientCurrentVersion = 0 };
+
 // Editor client
 typedef bool (*WKBundlePageShouldBeginEditingCallback)(WKBundlePageRef page, WKBundleRangeHandleRef range, const void* clientInfo);
 typedef bool (*WKBundlePageShouldEndEditingCallback)(WKBundlePageRef page, WKBundleRangeHandleRef range, const void* clientInfo);
@@ -239,6 +247,8 @@ struct WKBundlePageEditorClient {
 };
 typedef struct WKBundlePageEditorClient WKBundlePageEditorClient;
 
+enum { kWKBundlePageEditorClientCurrentVersion = 0 };
+
 // Form client
 typedef void (*WKBundlePageTextFieldDidBeginEditingCallback)(WKBundlePageRef page, WKBundleNodeHandleRef htmlInputElementHandle, WKBundleFrameRef frame, const void* clientInfo);
 typedef void (*WKBundlePageTextFieldDidEndEditingCallback)(WKBundlePageRef page, WKBundleNodeHandleRef htmlInputElementHandle, WKBundleFrameRef frame, const void* clientInfo);
@@ -259,6 +269,8 @@ struct WKBundlePageFormClient {
 };
 typedef struct WKBundlePageFormClient WKBundlePageFormClient;
 
+enum { kWKBundlePageFormClientCurrentVersion = 0 };
+
 // ContextMenu client
 typedef void (*WKBundlePageGetContextMenuFromDefaultContextMenuCallback)(WKBundlePageRef page, WKBundleHitTestResultRef hitTestResult, WKArrayRef defaultMenu, WKArrayRef* newMenu, WKTypeRef* userData, const void* clientInfo);
 
@@ -269,6 +281,8 @@ struct WKBundlePageContextMenuClient {
 };
 typedef struct WKBundlePageContextMenuClient WKBundlePageContextMenuClient;
 
+enum { kWKBundlePageContextMenuClientCurrentVersion = 0 };
+
 // Full Screen client
 typedef bool (*WKBundlePageSupportsFullScreen)(WKBundlePageRef page, WKFullScreenKeyboardRequestType requestType);
 typedef void (*WKBundlePageEnterFullScreenForElement)(WKBundlePageRef page, WKBundleNodeHandleRef element);
@@ -283,6 +297,8 @@ struct WKBundlePageFullScreenClient {
 };
 typedef struct WKBundlePageFullScreenClient WKBundlePageFullScreenClient;
 
+enum { kWKBundlePageFullScreenClientCurrentVersion = 0 };
+
 WK_EXPORT void WKBundlePageWillEnterFullScreen(WKBundlePageRef page);
 WK_EXPORT void WKBundlePageDidEnterFullScreen(WKBundlePageRef page);
 WK_EXPORT void WKBundlePageWillExitFullScreen(WKBundlePageRef page);
index e78b350..eeb20c9 100644 (file)
@@ -61,6 +61,8 @@ struct WKBundlePageOverlayClient {
     WKBundlePageOverlayMouseDraggedCallback                             mouseDragged;
 };
 typedef struct WKBundlePageOverlayClient WKBundlePageOverlayClient;
+
+enum { kWKBundlePageOverlayClientCurrentVersion = 0 };
     
 WK_EXPORT WKTypeID WKBundlePageOverlayGetTypeID();