Chromium Embedded Framework (CEF)  130.1.2+g48f3ef6+chromium-130.0.6723.44
CefDOMNode Class Referenceabstract

Class used to represent a DOM node. More...

#include "include/cef_dom.h"

Inheritance diagram for CefDOMNode:
CefBaseRefCounted

Public Types

typedef std::map< CefString, CefStringAttributeMap
 
typedef cef_dom_node_type_t Type
 
typedef cef_dom_form_control_type_t FormControlType
 

Public Member Functions

virtual Type GetType ()=0
 Returns the type for this node. More...
 
virtual bool IsText ()=0
 Returns true if this is a text node. More...
 
virtual bool IsElement ()=0
 Returns true if this is an element node. More...
 
virtual bool IsEditable ()=0
 Returns true if this is an editable node. More...
 
virtual bool IsFormControlElement ()=0
 Returns true if this is a form control element node. More...
 
virtual FormControlType GetFormControlElementType ()=0
 Returns the type of this form control element node. More...
 
virtual bool IsSame (CefRefPtr< CefDOMNode > that)=0
 Returns true if this object is pointing to the same handle as |that| object. More...
 
virtual CefString GetName ()=0
 Returns the name of this node. More...
 
virtual CefString GetValue ()=0
 Returns the value of this node. More...
 
virtual bool SetValue (const CefString &value)=0
 Set the value of this node. More...
 
virtual CefString GetAsMarkup ()=0
 Returns the contents of this node as markup. More...
 
virtual CefRefPtr< CefDOMDocumentGetDocument ()=0
 Returns the document associated with this node. More...
 
virtual CefRefPtr< CefDOMNodeGetParent ()=0
 Returns the parent node. More...
 
virtual CefRefPtr< CefDOMNodeGetPreviousSibling ()=0
 Returns the previous sibling node. More...
 
virtual CefRefPtr< CefDOMNodeGetNextSibling ()=0
 Returns the next sibling node. More...
 
virtual bool HasChildren ()=0
 Returns true if this node has child nodes. More...
 
virtual CefRefPtr< CefDOMNodeGetFirstChild ()=0
 Return the first child node. More...
 
virtual CefRefPtr< CefDOMNodeGetLastChild ()=0
 Returns the last child node. More...
 
virtual CefString GetElementTagName ()=0
 Returns the tag name of this element. More...
 
virtual bool HasElementAttributes ()=0
 Returns true if this element has attributes. More...
 
virtual bool HasElementAttribute (const CefString &attrName)=0
 Returns true if this element has an attribute named |attrName|. More...
 
virtual CefString GetElementAttribute (const CefString &attrName)=0
 Returns the element attribute named |attrName|. More...
 
virtual void GetElementAttributes (AttributeMap &attrMap)=0
 Returns a map of all element attributes. More...
 
virtual bool SetElementAttribute (const CefString &attrName, const CefString &value)=0
 Set the value for the element attribute named |attrName|. More...
 
virtual CefString GetElementInnerText ()=0
 Returns the inner text of the element. More...
 
virtual CefRect GetElementBounds ()=0
 Returns the bounds of the element in device pixels. More...
 
- Public Member Functions inherited from CefBaseRefCounted
virtual void AddRef () const =0
 Called to increment the reference count for the object. More...
 
virtual bool Release () const =0
 Called to decrement the reference count for the object. More...
 
virtual bool HasOneRef () const =0
 Returns true if the reference count is 1. More...
 
virtual bool HasAtLeastOneRef () const =0
 Returns true if the reference count is at least 1. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

Class used to represent a DOM node.

The methods of this class should only be called on the render process main thread.

Member Typedef Documentation

◆ AttributeMap

◆ FormControlType

◆ Type

Member Function Documentation

◆ GetAsMarkup()

virtual CefString CefDOMNode::GetAsMarkup ( )
pure virtual

Returns the contents of this node as markup.

◆ GetDocument()

virtual CefRefPtr<CefDOMDocument> CefDOMNode::GetDocument ( )
pure virtual

Returns the document associated with this node.

◆ GetElementAttribute()

virtual CefString CefDOMNode::GetElementAttribute ( const CefString attrName)
pure virtual

Returns the element attribute named |attrName|.

◆ GetElementAttributes()

virtual void CefDOMNode::GetElementAttributes ( AttributeMap attrMap)
pure virtual

Returns a map of all element attributes.

◆ GetElementBounds()

virtual CefRect CefDOMNode::GetElementBounds ( )
pure virtual

Returns the bounds of the element in device pixels.

Use "window.devicePixelRatio" to convert to/from CSS pixels.

◆ GetElementInnerText()

virtual CefString CefDOMNode::GetElementInnerText ( )
pure virtual

Returns the inner text of the element.

◆ GetElementTagName()

virtual CefString CefDOMNode::GetElementTagName ( )
pure virtual

Returns the tag name of this element.

◆ GetFirstChild()

virtual CefRefPtr<CefDOMNode> CefDOMNode::GetFirstChild ( )
pure virtual

Return the first child node.

◆ GetFormControlElementType()

virtual FormControlType CefDOMNode::GetFormControlElementType ( )
pure virtual

Returns the type of this form control element node.

◆ GetLastChild()

virtual CefRefPtr<CefDOMNode> CefDOMNode::GetLastChild ( )
pure virtual

Returns the last child node.

◆ GetName()

virtual CefString CefDOMNode::GetName ( )
pure virtual

Returns the name of this node.

◆ GetNextSibling()

virtual CefRefPtr<CefDOMNode> CefDOMNode::GetNextSibling ( )
pure virtual

Returns the next sibling node.

◆ GetParent()

virtual CefRefPtr<CefDOMNode> CefDOMNode::GetParent ( )
pure virtual

Returns the parent node.

◆ GetPreviousSibling()

virtual CefRefPtr<CefDOMNode> CefDOMNode::GetPreviousSibling ( )
pure virtual

Returns the previous sibling node.

◆ GetType()

virtual Type CefDOMNode::GetType ( )
pure virtual

Returns the type for this node.

◆ GetValue()

virtual CefString CefDOMNode::GetValue ( )
pure virtual

Returns the value of this node.

◆ HasChildren()

virtual bool CefDOMNode::HasChildren ( )
pure virtual

Returns true if this node has child nodes.

◆ HasElementAttribute()

virtual bool CefDOMNode::HasElementAttribute ( const CefString attrName)
pure virtual

Returns true if this element has an attribute named |attrName|.

◆ HasElementAttributes()

virtual bool CefDOMNode::HasElementAttributes ( )
pure virtual

Returns true if this element has attributes.

◆ IsEditable()

virtual bool CefDOMNode::IsEditable ( )
pure virtual

Returns true if this is an editable node.

◆ IsElement()

virtual bool CefDOMNode::IsElement ( )
pure virtual

Returns true if this is an element node.

◆ IsFormControlElement()

virtual bool CefDOMNode::IsFormControlElement ( )
pure virtual

Returns true if this is a form control element node.

◆ IsSame()

virtual bool CefDOMNode::IsSame ( CefRefPtr< CefDOMNode that)
pure virtual

Returns true if this object is pointing to the same handle as |that| object.

◆ IsText()

virtual bool CefDOMNode::IsText ( )
pure virtual

Returns true if this is a text node.

◆ SetElementAttribute()

virtual bool CefDOMNode::SetElementAttribute ( const CefString attrName,
const CefString value 
)
pure virtual

Set the value for the element attribute named |attrName|.

Returns true on success.

◆ SetValue()

virtual bool CefDOMNode::SetValue ( const CefString value)
pure virtual

Set the value of this node.

Returns true on success.


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