Move shared WebKit2 API (used by both bundle and main API) to WebKit2/Shared/API
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Sep 2010 01:22:46 +0000 (01:22 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Sep 2010 01:22:46 +0000 (01:22 +0000)
commita33c70a5fe77db957f699e0fcd8bd1821e4f11a1
tree2c1499e853531009326d32422b557dae250f859c
parent72759ec17944b7e544ad059e3388ae5b985956c1
Move shared WebKit2 API (used by both bundle and main API) to WebKit2/Shared/API
https://bugs.webkit.org/show_bug.cgi?id=46587

Reviewed by Anders Carlsson.

WebKit2:

- Moves shared types (WKArrayRef, WKDictionaryRef, etc) to Shared/API/c.
- Removes WKBundleBase.h and moves all opaque type declarations to WKBase.h (which
  moves to Shared/API/c).
- Adds WKSharedAPICast.h which includes shared API casting logic and is included
  by both WKAPICast.h and WKBundleAPICast.h now. Moved to using macros for API
  mappings to reduce verbosity.
- Move windows c API files from UIProcess/API/win to UIProcess/API/C/win.

* Shared/API: Added.
* Shared/API/c: Added.
* Shared/API/c/WKArray.cpp: Copied from UIProcess/API/C/WKArray.cpp.
* Shared/API/c/WKArray.h: Copied from UIProcess/API/C/WKArray.h.
* Shared/API/c/WKBase.h: Copied from UIProcess/API/C/WKBase.h.
* Shared/API/c/WKCertificateInfo.cpp: Copied from UIProcess/API/C/WKCertificateInfo.cpp.
* Shared/API/c/WKCertificateInfo.h: Copied from UIProcess/API/C/WKCertificateInfo.h.
* Shared/API/c/WKData.cpp: Copied from UIProcess/API/C/WKData.cpp.
* Shared/API/c/WKData.h: Copied from UIProcess/API/C/WKData.h.
* Shared/API/c/WKDictionary.cpp: Copied from UIProcess/API/C/WKDictionary.cpp.
* Shared/API/c/WKDictionary.h: Copied from UIProcess/API/C/WKDictionary.h.
* Shared/API/c/WKError.cpp: Copied from UIProcess/API/C/WKError.cpp.
* Shared/API/c/WKError.h: Copied from UIProcess/API/C/WKError.h.
* Shared/API/c/WKMutableArray.cpp: Copied from UIProcess/API/C/WKMutableArray.cpp.
* Shared/API/c/WKMutableArray.h: Copied from UIProcess/API/C/WKMutableArray.h.
* Shared/API/c/WKMutableDictionary.cpp: Copied from UIProcess/API/C/WKMutableDictionary.cpp.
* Shared/API/c/WKMutableDictionary.h: Copied from UIProcess/API/C/WKMutableDictionary.h.
* Shared/API/c/WKNumber.cpp: Copied from UIProcess/API/C/WKNumber.cpp.
* Shared/API/c/WKNumber.h: Copied from UIProcess/API/C/WKNumber.h.
* Shared/API/c/WKSerializedScriptValue.cpp: Copied from UIProcess/API/C/WKSerializedScriptValue.cpp.
* Shared/API/c/WKSerializedScriptValue.h: Copied from UIProcess/API/C/WKSerializedScriptValue.h.
* Shared/API/c/WKSharedAPICast.h: Copied from UIProcess/API/C/WKAPICast.h.
* Shared/API/c/WKString.cpp: Copied from UIProcess/API/C/WKString.cpp.
* Shared/API/c/WKString.h: Copied from UIProcess/API/C/WKString.h.
* Shared/API/c/WKType.cpp: Copied from UIProcess/API/C/WKType.cpp.
* Shared/API/c/WKType.h: Copied from UIProcess/API/C/WKType.h.
* Shared/API/c/WKURL.cpp: Copied from UIProcess/API/C/WKURL.cpp.
* Shared/API/c/WKURL.h: Copied from UIProcess/API/C/WKURL.h.
* Shared/API/c/WKURLRequest.cpp: Copied from UIProcess/API/C/WKURLRequest.cpp.
* Shared/API/c/WKURLRequest.h: Copied from UIProcess/API/C/WKURLRequest.h.
* Shared/API/c/WKURLResponse.cpp: Copied from UIProcess/API/C/WKURLResponse.cpp.
* Shared/API/c/WKURLResponse.h: Copied from UIProcess/API/C/WKURLResponse.h.
* Shared/API/c/cf: Copied from UIProcess/API/C/cf.
* Shared/API/c/mac: Copied from UIProcess/API/C/mac.
* Shared/API/c/win: Added.
* Shared/API/c/win/WKBaseWin.h: Copied from UIProcess/API/win/WKBaseWin.h.
* Shared/API/c/win/WKCertificateInfoWin.cpp: Copied from UIProcess/API/C/win/WKCertificateInfoWin.cpp.
* Shared/API/c/win/WKCertificateInfoWin.h: Copied from UIProcess/API/C/win/WKCertificateInfoWin.h.
* UIProcess/API/C/WKAPICast.h: Replaced.
* UIProcess/API/C/WKArray.cpp: Removed.
* UIProcess/API/C/WKArray.h: Removed.
* UIProcess/API/C/WKBase.h: Removed.
* UIProcess/API/C/WKCertificateInfo.cpp: Removed.
* UIProcess/API/C/WKCertificateInfo.h: Removed.
* UIProcess/API/C/WKData.cpp: Removed.
* UIProcess/API/C/WKData.h: Removed.
* UIProcess/API/C/WKDictionary.cpp: Removed.
* UIProcess/API/C/WKDictionary.h: Removed.
* UIProcess/API/C/WKError.cpp: Removed.
* UIProcess/API/C/WKError.h: Removed.
* UIProcess/API/C/WKMutableArray.cpp: Removed.
* UIProcess/API/C/WKMutableArray.h: Removed.
* UIProcess/API/C/WKMutableDictionary.cpp: Removed.
* UIProcess/API/C/WKMutableDictionary.h: Removed.
* UIProcess/API/C/WKNumber.cpp: Removed.
* UIProcess/API/C/WKNumber.h: Removed.
* UIProcess/API/C/WKSerializedScriptValue.cpp: Removed.
* UIProcess/API/C/WKSerializedScriptValue.h: Removed.
* UIProcess/API/C/WKString.cpp: Removed.
* UIProcess/API/C/WKString.h: Removed.
* UIProcess/API/C/WKType.cpp: Removed.
* UIProcess/API/C/WKType.h: Removed.
* UIProcess/API/C/WKURL.cpp: Removed.
* UIProcess/API/C/WKURL.h: Removed.
* UIProcess/API/C/WKURLRequest.cpp: Removed.
* UIProcess/API/C/WKURLRequest.h: Removed.
* UIProcess/API/C/WKURLResponse.cpp: Removed.
* UIProcess/API/C/WKURLResponse.h: Removed.
* UIProcess/API/C/cf: Removed.
* UIProcess/API/C/cf/WKStringCF.cpp: Removed.
* UIProcess/API/C/cf/WKStringCF.h: Removed.
* UIProcess/API/C/cf/WKURLCF.cpp: Removed.
* UIProcess/API/C/cf/WKURLCF.h: Removed.
* UIProcess/API/C/cf/WKURLRequestCF.cpp: Removed.
* UIProcess/API/C/cf/WKURLRequestCF.h: Removed.
* UIProcess/API/C/cf/WKURLResponseCF.cpp: Removed.
* UIProcess/API/C/cf/WKURLResponseCF.h: Removed.
* UIProcess/API/C/mac: Removed.
* UIProcess/API/C/mac/WKCertificateInfoMac.h: Removed.
* UIProcess/API/C/mac/WKCertificateInfoMac.mm: Removed.
* UIProcess/API/C/mac/WKURLRequestNS.h: Removed.
* UIProcess/API/C/mac/WKURLRequestNS.mm: Removed.
* UIProcess/API/C/mac/WKURLResponseNS.h: Removed.
* UIProcess/API/C/mac/WKURLResponseNS.mm: Removed.
* UIProcess/API/C/win/WKAPICastWin.h: Copied from UIProcess/API/win/WKAPICastWin.h.
* UIProcess/API/C/win/WKBaseWin.h: Copied from UIProcess/API/win/WKBaseWin.h.
* UIProcess/API/C/win/WKCertificateInfoWin.cpp: Removed.
* UIProcess/API/C/win/WKCertificateInfoWin.h: Removed.
* UIProcess/API/C/win/WKView.cpp: Copied from UIProcess/API/win/WKView.cpp.
* UIProcess/API/C/win/WKView.h: Copied from UIProcess/API/win/WKView.h.
* UIProcess/API/win: Removed.
* UIProcess/API/win/WKAPICastWin.h: Removed.
* UIProcess/API/win/WKBaseWin.h: Removed.
* UIProcess/API/win/WKView.cpp: Removed.
* UIProcess/API/win/WKView.h: Removed.
* WebKit2.pro:
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/API/c/WKBundle.h:
* WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
* WebProcess/InjectedBundle/API/c/WKBundleBase.h: Removed.
* WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
* WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
* WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h:
* WebProcess/InjectedBundle/API/c/WKBundleInitialize.h:
* WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.h:
* WebProcess/InjectedBundle/API/c/WKBundlePage.h:
* WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
* WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
* WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.h:
* WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.h:
* win/WebKit2.vcproj:
* win/WebKit2Generated.make:

WebKitTools:

* WebKitTestRunner/InjectedBundle/InjectedBundle.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@68357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
72 files changed:
WebKit2/ChangeLog
WebKit2/Shared/API/c/WKArray.cpp [moved from WebKit2/UIProcess/API/C/WKArray.cpp with 100% similarity]
WebKit2/Shared/API/c/WKArray.h [moved from WebKit2/UIProcess/API/C/WKArray.h with 100% similarity]
WebKit2/Shared/API/c/WKBase.h [moved from WebKit2/UIProcess/API/C/WKBase.h with 84% similarity]
WebKit2/Shared/API/c/WKCertificateInfo.cpp [moved from WebKit2/UIProcess/API/C/WKCertificateInfo.cpp with 100% similarity]
WebKit2/Shared/API/c/WKCertificateInfo.h [moved from WebKit2/UIProcess/API/C/WKCertificateInfo.h with 100% similarity]
WebKit2/Shared/API/c/WKData.cpp [moved from WebKit2/UIProcess/API/C/WKData.cpp with 100% similarity]
WebKit2/Shared/API/c/WKData.h [moved from WebKit2/UIProcess/API/C/WKData.h with 100% similarity]
WebKit2/Shared/API/c/WKDictionary.cpp [moved from WebKit2/UIProcess/API/C/WKDictionary.cpp with 100% similarity]
WebKit2/Shared/API/c/WKDictionary.h [moved from WebKit2/UIProcess/API/C/WKDictionary.h with 100% similarity]
WebKit2/Shared/API/c/WKError.cpp [moved from WebKit2/UIProcess/API/C/WKError.cpp with 100% similarity]
WebKit2/Shared/API/c/WKError.h [moved from WebKit2/UIProcess/API/C/WKError.h with 100% similarity]
WebKit2/Shared/API/c/WKMutableArray.cpp [moved from WebKit2/UIProcess/API/C/WKMutableArray.cpp with 100% similarity]
WebKit2/Shared/API/c/WKMutableArray.h [moved from WebKit2/UIProcess/API/C/WKMutableArray.h with 100% similarity]
WebKit2/Shared/API/c/WKMutableDictionary.cpp [moved from WebKit2/UIProcess/API/C/WKMutableDictionary.cpp with 100% similarity]
WebKit2/Shared/API/c/WKMutableDictionary.h [moved from WebKit2/UIProcess/API/C/WKMutableDictionary.h with 100% similarity]
WebKit2/Shared/API/c/WKNumber.cpp [moved from WebKit2/UIProcess/API/C/WKNumber.cpp with 100% similarity]
WebKit2/Shared/API/c/WKNumber.h [moved from WebKit2/UIProcess/API/C/WKNumber.h with 100% similarity]
WebKit2/Shared/API/c/WKSerializedScriptValue.cpp [moved from WebKit2/UIProcess/API/C/WKSerializedScriptValue.cpp with 100% similarity]
WebKit2/Shared/API/c/WKSerializedScriptValue.h [moved from WebKit2/UIProcess/API/C/WKSerializedScriptValue.h with 100% similarity]
WebKit2/Shared/API/c/WKSharedAPICast.h [new file with mode: 0644]
WebKit2/Shared/API/c/WKString.cpp [moved from WebKit2/UIProcess/API/C/WKString.cpp with 100% similarity]
WebKit2/Shared/API/c/WKString.h [moved from WebKit2/UIProcess/API/C/WKString.h with 100% similarity]
WebKit2/Shared/API/c/WKType.cpp [moved from WebKit2/UIProcess/API/C/WKType.cpp with 100% similarity]
WebKit2/Shared/API/c/WKType.h [moved from WebKit2/UIProcess/API/C/WKType.h with 100% similarity]
WebKit2/Shared/API/c/WKURL.cpp [moved from WebKit2/UIProcess/API/C/WKURL.cpp with 100% similarity]
WebKit2/Shared/API/c/WKURL.h [moved from WebKit2/UIProcess/API/C/WKURL.h with 100% similarity]
WebKit2/Shared/API/c/WKURLRequest.cpp [moved from WebKit2/UIProcess/API/C/WKURLRequest.cpp with 100% similarity]
WebKit2/Shared/API/c/WKURLRequest.h [moved from WebKit2/UIProcess/API/C/WKURLRequest.h with 100% similarity]
WebKit2/Shared/API/c/WKURLResponse.cpp [moved from WebKit2/UIProcess/API/C/WKURLResponse.cpp with 100% similarity]
WebKit2/Shared/API/c/WKURLResponse.h [moved from WebKit2/UIProcess/API/C/WKURLResponse.h with 100% similarity]
WebKit2/Shared/API/c/cf/WKStringCF.cpp [moved from WebKit2/UIProcess/API/C/cf/WKStringCF.cpp with 100% similarity]
WebKit2/Shared/API/c/cf/WKStringCF.h [moved from WebKit2/UIProcess/API/C/cf/WKStringCF.h with 100% similarity]
WebKit2/Shared/API/c/cf/WKURLCF.cpp [moved from WebKit2/UIProcess/API/C/cf/WKURLCF.cpp with 100% similarity]
WebKit2/Shared/API/c/cf/WKURLCF.h [moved from WebKit2/UIProcess/API/C/cf/WKURLCF.h with 100% similarity]
WebKit2/Shared/API/c/cf/WKURLRequestCF.cpp [moved from WebKit2/UIProcess/API/C/cf/WKURLRequestCF.cpp with 100% similarity]
WebKit2/Shared/API/c/cf/WKURLRequestCF.h [moved from WebKit2/UIProcess/API/C/cf/WKURLRequestCF.h with 100% similarity]
WebKit2/Shared/API/c/cf/WKURLResponseCF.cpp [moved from WebKit2/UIProcess/API/C/cf/WKURLResponseCF.cpp with 100% similarity]
WebKit2/Shared/API/c/cf/WKURLResponseCF.h [moved from WebKit2/UIProcess/API/C/cf/WKURLResponseCF.h with 100% similarity]
WebKit2/Shared/API/c/mac/WKCertificateInfoMac.h [moved from WebKit2/UIProcess/API/C/mac/WKCertificateInfoMac.h with 100% similarity]
WebKit2/Shared/API/c/mac/WKCertificateInfoMac.mm [moved from WebKit2/UIProcess/API/C/mac/WKCertificateInfoMac.mm with 100% similarity]
WebKit2/Shared/API/c/mac/WKURLRequestNS.h [moved from WebKit2/UIProcess/API/C/mac/WKURLRequestNS.h with 100% similarity]
WebKit2/Shared/API/c/mac/WKURLRequestNS.mm [moved from WebKit2/UIProcess/API/C/mac/WKURLRequestNS.mm with 100% similarity]
WebKit2/Shared/API/c/mac/WKURLResponseNS.h [moved from WebKit2/UIProcess/API/C/mac/WKURLResponseNS.h with 100% similarity]
WebKit2/Shared/API/c/mac/WKURLResponseNS.mm [moved from WebKit2/UIProcess/API/C/mac/WKURLResponseNS.mm with 100% similarity]
WebKit2/Shared/API/c/win/WKBaseWin.h [moved from WebKit2/UIProcess/API/win/WKBaseWin.h with 100% similarity]
WebKit2/Shared/API/c/win/WKCertificateInfoWin.cpp [moved from WebKit2/UIProcess/API/C/win/WKCertificateInfoWin.cpp with 100% similarity]
WebKit2/Shared/API/c/win/WKCertificateInfoWin.h [moved from WebKit2/UIProcess/API/C/win/WKCertificateInfoWin.h with 100% similarity]
WebKit2/UIProcess/API/C/WKAPICast.h
WebKit2/UIProcess/API/C/win/WKAPICastWin.h [moved from WebKit2/UIProcess/API/win/WKAPICastWin.h with 86% similarity]
WebKit2/UIProcess/API/C/win/WKBaseWin.h [new file with mode: 0644]
WebKit2/UIProcess/API/C/win/WKView.cpp [moved from WebKit2/UIProcess/API/win/WKView.cpp with 100% similarity]
WebKit2/UIProcess/API/C/win/WKView.h [moved from WebKit2/UIProcess/API/win/WKView.h with 100% similarity]
WebKit2/WebKit2.pro
WebKit2/WebKit2.xcodeproj/project.pbxproj
WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.h
WebKit2/WebProcess/InjectedBundle/API/c/WKBundleAPICast.h
WebKit2/WebProcess/InjectedBundle/API/c/WKBundleBase.h [deleted file]
WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.h
WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h
WebKit2/WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h
WebKit2/WebProcess/InjectedBundle/API/c/WKBundleInitialize.h
WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.h
WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.h
WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h
WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h
WebKit2/WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.h
WebKit2/WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.h
WebKit2/win/WebKit2.vcproj
WebKit2/win/WebKit2Generated.make
WebKitTools/ChangeLog
WebKitTools/WebKitTestRunner/InjectedBundle/InjectedBundle.h