-
andersca authored
Reviewed by Geoff. Implement _NPN_Enumerate support. * JavaScriptCore.exp: * bindings/NP_jsobject.cpp: (_NPN_Enumerate): * bindings/c/c_instance.cpp: (KJS::Bindings::CInstance::getPropertyNames): * bindings/c/c_instance.h: * bindings/npapi.h: * bindings/npruntime.h: * bindings/npruntime_impl.h: * bindings/runtime.h: (KJS::Bindings::Instance::getPropertyNames): * bindings/runtime_object.cpp: (RuntimeObjectImp::getPropertyNames): * bindings/runtime_object.h: (KJS::RuntimeObjectImp::getInternalInstance): LayoutTests: Reviewed by Geoff. Add enumeration test. * plugins/netscape-enumerate-expected.txt: Added. * plugins/netscape-enumerate.html: Added. WebKit: Reviewed by Geoff. * Plugins/WebNetscapePluginPackage.m: (-[WebNetscapePluginPackage load]): Initialize pushpopupsenabledstate, poppopupsenabledstate and enumerate. * Plugins/npapi.m: (NPN_PushPopupsEnabledState): (NPN_PopPopupsEnabledState): Add stubs for these functions. * Plugins/npfunctions.h: Add new methods to NPNetscapeFuncs. WebKitTools: Reviewed by Geoff. * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Add TestObject.c and TestObject.h * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.c: (pluginGetProperty): Implement the testObject property. (pluginInvoke): Implement testEnumerate which takes an object and an array and enumerates the properties of the object and adds them to the array. (pluginAllocate): Allocate the test object. (pluginDeallocate): Free the test object. * DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.c: Added. * DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.h: Added. Add a test object with two enumerable properties. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
77d5e0d0