Back to index
Creates a link between the script object and its native implementation. More...
|NS_IMETHOD||GetScriptObject (nsIScriptContext *aContext, void **aScriptObject)=0|
|Return the script object associated with this object. |
|NS_IMETHOD||SetScriptObject (void *aScriptObject)=0|
|Set the script object associated with this object. |
Creates a link between the script object and its native implementation.
Every object that wants to be exposed in a script environment should implement this interface. This interface should guarantee that the same script object is returned in the context of the same script.
It does have a bit too much java script information now, that should be removed in a short time. Ideally this interface will be language neutral
|NS_IMETHOD nsIScriptObjectOwner::GetScriptObject||(||nsIScriptContext *||aContext,|
Return the script object associated with this object.
Create a script object if not present.
|aContext||the context the script object has to be created in|
|aScriptObject||on return will contain the script object|
Set the script object associated with this object.
Often used to either reset the object to null or initially set it in cases where the object comes before the owner.
|aScriptObject||the script object to set|