摘要 |
Embodiments of the present invention relate to a scriptable plug-in API. According to the invention, all of the interfaces in a conventional, non-scriptable plug-in API are mapped to similar interfaces in a scriptable plug-in API. There is no need to change the existing plug-in APIs. In one embodiment, a set of interfaces and a set of wrappers are used to bind the new, scriptable plug-in API to the old one. In another embodiment, C++ wrappers are written to bridge new API to the old one. Inter-threading calls for plug-ins are also made possible using a proxy that functions with scriptable interfaces. In another embodiment, the plug-in is written for a Mozilla(TM)/Netscape(TM) 6.x browser. In another embodiment, the scripting languages used to develop the plug-in include Python, JavaScript, and Perl.
|