Logo Search packages:      
Sourcecode: xulrunner version File versions  Download package

nsIScriptContext Class Reference

#include <nsIScriptContext.h>

Inheritance diagram for nsIScriptContext:

nsISupports

List of all members.


Detailed Description

It is used by the application to initialize a runtime and run scripts. A script runtime would implement this interface.

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

Definition at line 75 of file nsIScriptContext.h.


Public Member Functions

virtual nsresult BindCompiledEventHandler (nsISupports *aTarget, void *aScope, nsIAtom *aName, void *aHandler)=0
virtual nsresult CallEventHandler (nsISupports *aTarget, void *aScope, void *aHandler, nsIArray *argv, nsIVariant **rval)=0
virtual void ClearScope (void *aGlobalObj, PRBool aClearFromProtoChain)=0
virtual nsresult CompileEventHandler (nsIAtom *aName, PRUint32 aArgCount, const char **aArgNames, const nsAString &aBody, const char *aURL, PRUint32 aLineNo, PRUint32 aVersion, nsScriptObjectHolder &aHandler)=0
virtual nsresult CompileFunction (void *aTarget, const nsACString &aName, PRUint32 aArgCount, const char **aArgArray, const nsAString &aBody, const char *aURL, PRUint32 aLineNo, PRUint32 aVersion, PRBool aShared, void **aFunctionObject)=0
virtual nsresult CompileScript (const PRUnichar *aText, PRInt32 aTextLength, void *aScopeObject, nsIPrincipal *aPrincipal, const char *aURL, PRUint32 aLineNo, PRUint32 aVersion, nsScriptObjectHolder &aScriptObject)=0
virtual nsresult ConnectToInner (nsIScriptGlobalObject *aNewInner, void *aOuterGlobal)=0
virtual nsresult CreateNativeGlobalForInner (nsIScriptGlobalObject *aNewInner, PRBool aIsChrome, void **aNativeGlobal, nsISupports **aHolder)=0
virtual nsresult Deserialize (nsIObjectInputStream *aStream, nsScriptObjectHolder &aResult)=0
virtual void DidInitializeContext ()=0
virtual void DidSetDocument (nsISupports *aDoc, void *aGlobal)=0
virtual nsresult DropScriptObject (void *object)=0
virtual nsresult EvaluateString (const nsAString &aScript, void *aScopeObject, nsIPrincipal *aPrincipal, const char *aURL, PRUint32 aLineNo, PRUint32 aVersion, nsAString *aRetValue, PRBool *aIsUndefined)=0
virtual nsresult EvaluateStringWithValue (const nsAString &aScript, void *aScopeObject, nsIPrincipal *aPrincipal, const char *aURL, PRUint32 aLineNo, PRUint32 aVersion, void *aRetValue, PRBool *aIsUndefined)=0
virtual nsresult ExecuteScript (void *aScriptObject, void *aScopeObject, nsAString *aRetValue, PRBool *aIsUndefined)=0
virtual void FinalizeContext ()=0
virtual void GC ()=0
virtual nsresult GetBoundEventHandler (nsISupports *aTarget, void *aScope, nsIAtom *aName, nsScriptObjectHolder &aHandler)=0
virtual nsIScriptGlobalObjectGetGlobalObject ()=0
virtual void * GetNativeContext ()=0
virtual void * GetNativeGlobal ()=0
virtual PRBool GetProcessingScriptTag ()=0
virtual PRBool GetScriptsEnabled ()=0
virtual PRUint32 GetScriptTypeID ()=0
virtual nsresult HoldScriptObject (void *object)=0
virtual nsresult InitClasses (void *aGlobalObj)=0
virtual nsresult InitContext (nsIScriptGlobalObject *aGlobalObject)=0
virtual PRBool IsContextInitialized ()=0
virtual void ReportPendingException ()=0
virtual void ScriptEvaluated (PRBool aTerminated)=0
virtual nsresult Serialize (nsIObjectOutputStream *aStream, void *aScriptObject)=0
virtual void SetDefaultLanguageVersion (PRUint32 aVersion)=0
virtual void SetGCOnDestruction (PRBool aGCOnDestruction)=0
virtual void SetProcessingScriptTag (PRBool aResult)=0
virtual nsresult SetProperty (void *aTarget, const char *aPropName, nsISupports *aVal)=0
virtual void SetScriptsEnabled (PRBool aEnabled, PRBool aFireTimeouts)=0
virtual nsresult SetTerminationFunction (nsScriptTerminationFunc aFunc, nsISupports *aRef)=0
virtual void WillInitializeContext ()=0
Methods
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index