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

nsINode Class Reference

#include <nsINode.h>

Inheritance diagram for nsINode:

nsISupports nsIContent nsGenericElement nsTextNode nsAttributeTextNode nsGenConImageContent nsXULDocument nsGenericHTMLElement nsGenericHTMLFormElement nsGenericHTMLFrameElement nsHTMLOptGroupElement nsHTMLOptionElement nsHTMLSelectElement

List of all members.


Detailed Description

An internal interface that abstracts some DOMNode-related parts that both nsIContent and nsIDocument share. An instance of this interface has a list of nsIContent children and provides access to them.

Definition at line 159 of file nsINode.h.


Public Types

enum  {
  eCONTENT = 1 << 0, eDOCUMENT = 1 << 1, eATTRIBUTE = 1 << 2, eELEMENT = 1 << 3,
  eTEXT = 1 << 4, ePROCESSING_INSTRUCTION = 1 << 5, eCOMMENT = 1 << 6, eHTML = 1 << 7,
  eHTML_FORM_CONTROL = 1 << 8, eXUL = 1 << 9, eSVG = 1 << 10, eDOCUMENT_FRAGMENT = 1 << 11,
  eDATA_NODE = 1 << 12, eMATHML = 1 << 13
}

Public Member Functions

virtual nsresult AddEventListenerByIID (nsIDOMEventListener *aListener, const nsIID &aIID)=0
virtual void AddMutationObserver (nsIMutationObserver *aMutationObserver)
nsresult AppendChildTo (nsIContent *aKid, PRBool aNotify)
virtual nsresult Clone (nsINodeInfo *aNodeInfo, nsINode **aResult) const =0
virtual nsresult DeleteProperty (PRUint16 aCategory, nsIAtom *aPropertyName)
nsresult DeleteProperty (nsIAtom *aPropertyName)
virtual nsresult DispatchDOMEvent (nsEvent *aEvent, nsIDOMEvent *aDOMEvent, nsPresContext *aPresContext, nsEventStatus *aEventStatus)=0
virtual nsIContentGetChildAt (PRUint32 aIndex) const =0
virtual PRUint32 GetChildCount () const =0
nsIDocument * GetCurrentDoc () const
PtrBits GetFlags () const
virtual nsresult GetListenerManager (PRBool aCreateIfNotFound, nsIEventListenerManager **aResult)=0
nsINodeGetNodeParent () const
nsIDocument * GetOwnerDoc () const
nsIContentGetParent () const
virtual void * GetProperty (PRUint16 aCategory, nsIAtom *aPropertyName, nsresult *aStatus=nsnull) const
void * GetProperty (nsIAtom *aPropertyName, nsresult *aStatus=nsnull) const
nsIContentGetSelectionRootContent (nsIPresShell *aPresShell)
virtual nsresult GetSystemEventGroup (nsIDOMEventGroup **aGroup)=0
virtual nsPIDOMEventTarget * GetTargetForDOMEvent ()
virtual nsPIDOMEventTarget * GetTargetForEventTargetChain ()
nsIContentGetTextEditorRootContent (nsIEditor **aEditor=nsnull)
PRBool HasFlag (PtrBits aFlag) const
PRBool HasProperties () const
PRBool HasSameOwnerDoc (nsINode *aOther)
virtual PRInt32 IndexOf (nsINode *aPossibleChild) const =0
virtual nsresult InsertChildAt (nsIContent *aKid, PRUint32 aIndex, PRBool aNotify)=0
PRBool IsEditable () const
PRBool IsInDoc () const
virtual PRBool IsNodeOfType (PRUint32 aFlags) const =0
nsIPrincipalNodePrincipal () const
virtual nsresult PostHandleEvent (nsEventChainPostVisitor &aVisitor)=0
virtual nsresult PreHandleEvent (nsEventChainPreVisitor &aVisitor)=0
virtual nsresult RemoveChildAt (PRUint32 aIndex, PRBool aNotify)=0
virtual nsresult RemoveEventListenerByIID (nsIDOMEventListener *aListener, const nsIID &aIID)=0
virtual void RemoveMutationObserver (nsIMutationObserver *aMutationObserver)
void SetEditableFlag (PRBool aEditable)
void SetFlags (PtrBits aFlagsToSet)
virtual nsresult SetProperty (PRUint16 aCategory, nsIAtom *aPropertyName, void *aValue, NSPropertyDtorFunc aDtor=nsnull, PRBool aTransfer=PR_FALSE, void **aOldValue=nsnull)
nsresult SetProperty (nsIAtom *aPropertyName, void *aValue, NSPropertyDtorFunc aDtor=nsnull, PRBool aTransfer=PR_FALSE)
void UnsetFlags (PtrBits aFlagsToUnset)
virtual void * UnsetProperty (PRUint16 aCategory, nsIAtom *aPropertyName, nsresult *aStatus=nsnull)
void * UnsetProperty (nsIAtom *aPropertyName, nsresult *aStatus=nsnull)
virtual nsresult WillHandleEvent (nsEventChainPostVisitor &aVisitor)
Methods
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Protected Types

enum  { PARENT_BIT_INDOCUMENT = 1 << 0, PARENT_BIT_PARENT_IS_CONTENT = 1 << 1 }
enum  { kParentBitMask = 0x3 }

Protected Member Functions

virtual nsINode::nsSlots * CreateSlots ()
nsSlots * FlagsAsSlots () const
nsSlots * GetExistingSlots () const
nsTObserverArray
< nsIMutationObserver * > * 
GetMutationObservers ()
nsSlots * GetSlots ()
PRBool HasSlots () const
virtual PRBool IsEditableExternal () const
PRBool IsEditableInternal () const

Protected Attributes

PtrBits mFlagsOrSlots
nsCOMPtr< nsINodeInfo > mNodeInfo
PtrBits mParentPtrBits

Friends

class nsNodeSupportsWeakRefTearoff
class nsNodeUtils
class nsNodeWeakReference

Classes

class  nsSlots

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

Generated by  Doxygen 1.6.0   Back to index