Logo Search packages:      
Sourcecode: xulrunner version File versions

nsScriptElement Class Reference

#include <nsScriptElement.h>

Inheritance diagram for nsScriptElement:

nsIScriptElement nsStubMutationObserver nsIMutationObserver nsISupports nsISupports

List of all members.


Detailed Description

Baseclass useful for script elements (such as <xhtml:script> and <svg:script>). Currently the class assumes that only the 'src' attribute and the children of the class affect what script to execute.

Definition at line 49 of file nsScriptElement.h.


Public Member Functions

virtual void AttributeChanged (nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID, nsIAtom *aAttribute, PRInt32 aModType, PRUint32 aStateMask)=0
virtual void CharacterDataChanged (nsIDocument *aDocument, nsIContent *aContent, CharacterDataChangeInfo *aInfo)=0
virtual void CharacterDataWillChange (nsIDocument *aDocument, nsIContent *aContent, CharacterDataChangeInfo *aInfo)=0
virtual void ContentAppended (nsIDocument *aDocument, nsIContent *aContainer, PRInt32 aNewIndexInContainer)=0
virtual void ContentInserted (nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild, PRInt32 aIndexInContainer)=0
virtual void ContentRemoved (nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild, PRInt32 aIndexInContainer)=0
virtual void GetScriptCharset (nsAString &charset)=0
PRUint32 GetScriptLineNumber ()
virtual void GetScriptText (nsAString &text)=0
virtual void GetScriptType (nsAString &type)=0
virtual already_AddRefed< nsIURI > GetScriptURI ()=0
PRBool IsMalformed ()
virtual void NodeWillBeDestroyed (const nsINode *aNode)=0
virtual void ParentChainChanged (nsIContent *aContent)=0
void PreventExecution ()
void scriptAvailable (in nsresult aResult, in nsIScriptElement aElement, in boolean aIsInline, in nsIURI aURI, in PRInt32 aLineNo)
void scriptEvaluated (in nsresult aResult, in nsIScriptElement aElement, in boolean aIsInline)
void SetIsMalformed ()
void SetScriptLineNumber (PRUint32 aLineNumber)
void WillCallDoneAddingChildren ()
Methods
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Protected Member Functions

virtual PRBool HasScriptContent ()=0
virtual nsresult MaybeProcessScript ()

Protected Attributes

PRPackedBool mDoneAddingChildren
PRPackedBool mIsEvaluated
PRUint32 mLineNumber
PRPackedBool mMalformed

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

Generated by  Doxygen 1.6.0   Back to index