Reviewed by Geoff.
authortomernic <tomernic@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Mar 2006 23:30:27 +0000 (23:30 +0000)
committertomernic <tomernic@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Mar 2006 23:30:27 +0000 (23:30 +0000)
commitf4fd0848ab973a5a43e384bea2b27647494d79f0
tree5312c7cd8a66c692a6092661a02d2197637fe546
parent8ec8a0d5a0e87fcdc7ab3121f7a9c15a0e198f3f
    Reviewed by Geoff.

        * DumpRenderTree/DumpRenderTree.m:
        (-[WaitUntilDoneDelegate webView:windowScriptObjectAvailable:]):
        Add "objCPlugin", "objCPluginFunction" properties to the window.  objCPlugin simulates
        an Objective C object exposed to JS; objCPluginFunction simulates an Objective C method
        exposed to JS as a callable object.

        * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
        Added ObjCPlugin.[hm], ObjCPluginFunction.[hm].

        * DumpRenderTree/ObjCPlugin.h: Added.
        * DumpRenderTree/ObjCPlugin.m: Added.
        * DumpRenderTree/ObjCPluginFunction.h: Added.
        * DumpRenderTree/ObjCPluginFunction.m: Added.

        * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.c:
        Added a new method, "removeDefaultMethod", which removes the default method from the
        plugin object's class.  The effect is that the plugin object is mutated from a callable
        function to a simple object.
        (pluginInvoke):
        Handle "removeDefaultMethod".
        (pluginInvokeDefault):
        Made the default method actually do something (return 1).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13586 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/DumpRenderTree.m
WebKitTools/DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj
WebKitTools/DumpRenderTree/ObjCPlugin.h [new file with mode: 0644]
WebKitTools/DumpRenderTree/ObjCPlugin.m [new file with mode: 0644]
WebKitTools/DumpRenderTree/ObjCPluginFunction.h [new file with mode: 0644]
WebKitTools/DumpRenderTree/ObjCPluginFunction.m [new file with mode: 0644]
WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.c