Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 1123
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefDOMNode

CefBase
   |
   +--CefDOMNode

   in cef_dom.h

class CefDOMNode
extends CefBase

Class used to represent a DOM node. The methods of this class should only be called on the UI thread.


Inner Classes, Typedefs, and Enums
typedef CefDOMNode::AttributeMap
          
typedef CefDOMNode::Type
          
 
Method Summary
 virtual void AddEventListener( const CefString& eventType, CefRefPtr< CefDOMEventListener > listener, bool useCapture )= 0
          Add an event listener to this node for the specified event type.
 virtual CefString GetAsMarkup()= 0
          Returns the contents of this node as markup.
 virtual CefRefPtr< CefDOMDocument > GetDocument()= 0
          Returns the document associated with this node.
 virtual CefString GetElementAttribute( const CefString& attrName )= 0
          Returns the element attribute named |attrName|.
 virtual void GetElementAttributes( CefDOMNode::AttributeMap& attrMap )= 0
          Returns a map of all element attributes.
 virtual CefString GetElementInnerText()= 0
          Returns the inner text of the element.
 virtual CefString GetElementTagName()= 0
          Returns the tag name of this element.
 virtual CefRefPtr< CefDOMNode > GetFirstChild()= 0
          Return the first child node.
 virtual CefString GetFormControlElementType()= 0
          Returns the type of this form control element node.
 virtual CefRefPtr< CefDOMNode > GetLastChild()= 0
          Returns the last child node.
 virtual CefString GetName()= 0
          Returns the name of this node.
 virtual CefRefPtr< CefDOMNode > GetNextSibling()= 0
          Returns the next sibling node.
 virtual CefRefPtr< CefDOMNode > GetParent()= 0
          Returns the parent node.
 virtual CefRefPtr< CefDOMNode > GetPreviousSibling()= 0
          Returns the previous sibling node.
 virtual CefDOMNode::Type GetType()= 0
          Returns the type for this node.
 virtual CefString GetValue()= 0
          Returns the value of this node.
 virtual bool HasChildren()= 0
          Returns true if this node has child nodes.
 virtual bool HasElementAttribute( const CefString& attrName )= 0
          Returns true if this element has an attribute named |attrName|.
 virtual bool HasElementAttributes()= 0
          Returns true if this element has attributes.
 virtual bool IsElement()= 0
          Returns true if this is an element node.
 virtual bool IsFormControlElement()= 0
          Returns true if this is a form control element node.
 virtual bool IsSame( CefRefPtr< CefDOMNode > that )= 0
          Returns true if this object is pointing to the same handle as |that| object.
 virtual bool IsText()= 0
          Returns true if this is a text node.
 virtual bool SetElementAttribute( const CefString& attrName, const CefString& value )= 0
          Set the value for the element attribute named |attrName|.
 virtual bool SetValue( const CefString& value )= 0
          Set the value of this node.
   
Methods inherited from class CefBase
AddRef, Release, GetRefCt
 

Method Detail

AddEventListener

public virtual void AddEventListener( const CefString& eventType, CefRefPtr< CefDOMEventListener > listener, bool useCapture )= 0;
Add an event listener to this node for the specified event type. If |useCapture| is true then this listener will be considered a capturing listener. Capturing listeners will recieve all events of the specified type before the events are dispatched to any other event targets beneath the current node in the tree. Events which are bubbling upwards through the tree will not trigger a capturing listener. Separate calls to this method can be used to register the same listener with and without capture. See WebCore/dom/EventNames.h for the list of supported event types.

GetAsMarkup

public virtual CefString GetAsMarkup()= 0;
Returns the contents of this node as markup.

GetDocument

public virtual CefRefPtr< CefDOMDocument > GetDocument()= 0;
Returns the document associated with this node.

GetElementAttribute

public virtual CefString GetElementAttribute( const CefString& attrName )= 0;
Returns the element attribute named |attrName|.

GetElementAttributes

public virtual void GetElementAttributes( CefDOMNode::AttributeMap& attrMap )= 0;
Returns a map of all element attributes.

GetElementInnerText

public virtual CefString GetElementInnerText()= 0;
Returns the inner text of the element.

GetElementTagName

public virtual CefString GetElementTagName()= 0;
Returns the tag name of this element.

GetFirstChild

public virtual CefRefPtr< CefDOMNode > GetFirstChild()= 0;
Return the first child node.

GetFormControlElementType

public virtual CefString GetFormControlElementType()= 0;
Returns the type of this form control element node.

GetLastChild

public virtual CefRefPtr< CefDOMNode > GetLastChild()= 0;
Returns the last child node.

GetName

public virtual CefString GetName()= 0;
Returns the name of this node.

GetNextSibling

public virtual CefRefPtr< CefDOMNode > GetNextSibling()= 0;
Returns the next sibling node.

GetParent

public virtual CefRefPtr< CefDOMNode > GetParent()= 0;
Returns the parent node.

GetPreviousSibling

public virtual CefRefPtr< CefDOMNode > GetPreviousSibling()= 0;
Returns the previous sibling node.

GetType

public virtual CefDOMNode::Type GetType()= 0;
Returns the type for this node.

GetValue

public virtual CefString GetValue()= 0;
Returns the value of this node.

HasChildren

public virtual bool HasChildren()= 0;
Returns true if this node has child nodes.

HasElementAttribute

public virtual bool HasElementAttribute( const CefString& attrName )= 0;
Returns true if this element has an attribute named |attrName|.

HasElementAttributes

public virtual bool HasElementAttributes()= 0;
Returns true if this element has attributes.

IsElement

public virtual bool IsElement()= 0;
Returns true if this is an element node.

IsFormControlElement

public virtual bool IsFormControlElement()= 0;
Returns true if this is a form control element node.

IsSame

public virtual bool IsSame( CefRefPtr< CefDOMNode > that )= 0;
Returns true if this object is pointing to the same handle as |that| object.

IsText

public virtual bool IsText()= 0;
Returns true if this is a text node.

SetElementAttribute

public virtual bool SetElementAttribute( const CefString& attrName, const CefString& value )= 0;
Set the value for the element attribute named |attrName|. Returns true on success.

SetValue

public virtual bool SetValue( const CefString& value )= 0;
Set the value of this node. Returns true on success.

 Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 1123
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt