Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefDOMNode

CefBaseRefCounted
   |
   +--CefDOMNode

   in cef_dom.h

class CefDOMNode
extends CefBaseRefCounted

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


Inner Classes, Typedefs, and Enums
typedef CefDOMNode::AttributeMap
          
typedef CefDOMNode::Type
          
 
Method Summary
 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 CefRect GetElementBounds()= 0
          Returns the bounds of the element.
 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 IsEditable()= 0
          Returns true if this is an editable node.
 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 CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

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.

GetElementBounds

public virtual CefRect GetElementBounds()= 0;
Returns the bounds of the element.

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.

IsEditable

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

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 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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