Begin fleshing out an API test for WKRemoteObjectRegistry
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Oct 2013 21:51:42 +0000 (21:51 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Oct 2013 21:51:42 +0000 (21:51 +0000)
commitef963450d654842b9bf7cdc9f3fdbae1c5c083ae
treeb9be8a72a53c93a87809c2b29fd789f387e4260a
parent9c7ac88a79d1eda8cc5af8e37107e30c107b6858
Begin fleshing out an API test for WKRemoteObjectRegistry
https://bugs.webkit.org/show_bug.cgi?id=123531

Reviewed by Andreas Kling.

Source/WebKit2:

* Shared/API/Cocoa/WKRemoteObjectInterface.h:
Add WK_API_CLASS annotation.

* Shared/API/Cocoa/WKRemoteObjectRegistry.h:
Add WK_API_CLASS annotation.

* Shared/API/Cocoa/WKRemoteObjectRegistry.mm:
Add a WebConnection ivar.

(-[WKRemoteObjectRegistry _initWithConnectionRef:]):
Add SPI to create an WKRemoteObjectRegistry object with an existing WKConnectionRef.

(-[WKRemoteObjectRegistry _handleMessageWithName:body:]):
Add SPI that will be used to process incoming messages from an existing WKConnectionRef.

* Shared/API/Cocoa/WKRemoteObjectRegistryPrivate.h: Added.
Add SPI header.

* WebKit2.xcodeproj/project.pbxproj:
Add new files.

Tools:

Add a very simple test that doesn't really test anything for now.

* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* TestWebKitAPI/Tests/WebKit2ObjC/WKRemoteObjectRegistry.mm: Added.
* TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Bundle.mm: Added.
* TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Shared.h: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@158316 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectInterface.h
Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectRegistry.h
Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectRegistry.mm
Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectRegistryPrivate.h [new file with mode: 0644]
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
Tools/ChangeLog
Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
Tools/TestWebKitAPI/Tests/WebKit2ObjC/WKRemoteObjectRegistry.mm [new file with mode: 0644]
Tools/TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Bundle.mm [new file with mode: 0644]
Tools/TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Shared.h [new file with mode: 0644]