Chromium Embedded Framework (CEF)
130.1.2+g48f3ef6+chromium-130.0.6723.44
|
Class used to represent a DOM node. More...
#include "include/cef_dom.h"
Public Types | |
typedef std::map< CefString, CefString > | AttributeMap |
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< CefDOMDocument > | GetDocument ()=0 |
Returns the document associated with this node. More... | |
virtual CefRefPtr< CefDOMNode > | GetParent ()=0 |
Returns the parent node. More... | |
virtual CefRefPtr< CefDOMNode > | GetPreviousSibling ()=0 |
Returns the previous sibling node. More... | |
virtual CefRefPtr< CefDOMNode > | GetNextSibling ()=0 |
Returns the next sibling node. More... | |
virtual bool | HasChildren ()=0 |
Returns true if this node has child nodes. More... | |
virtual CefRefPtr< CefDOMNode > | GetFirstChild ()=0 |
Return the first child node. More... | |
virtual CefRefPtr< CefDOMNode > | GetLastChild ()=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 () |
Class used to represent a DOM node.
The methods of this class should only be called on the render process main thread.
typedef std::map<CefString, CefString> CefDOMNode::AttributeMap |
typedef cef_dom_node_type_t CefDOMNode::Type |
|
pure virtual |
Returns the contents of this node as markup.
|
pure virtual |
Returns the document associated with this node.
Returns the element attribute named |attrName|.
|
pure virtual |
Returns a map of all element attributes.
|
pure virtual |
Returns the bounds of the element in device pixels.
Use "window.devicePixelRatio" to convert to/from CSS pixels.
|
pure virtual |
Returns the inner text of the element.
|
pure virtual |
Returns the tag name of this element.
|
pure virtual |
Return the first child node.
|
pure virtual |
Returns the type of this form control element node.
|
pure virtual |
Returns the last child node.
|
pure virtual |
Returns the name of this node.
|
pure virtual |
Returns the next sibling node.
|
pure virtual |
Returns the parent node.
|
pure virtual |
Returns the previous sibling node.
|
pure virtual |
Returns the type for this node.
|
pure virtual |
Returns the value of this node.
|
pure virtual |
Returns true if this node has child nodes.
|
pure virtual |
Returns true if this element has an attribute named |attrName|.
|
pure virtual |
Returns true if this element has attributes.
|
pure virtual |
Returns true if this is an editable node.
|
pure virtual |
Returns true if this is an element node.
|
pure virtual |
Returns true if this is a form control element node.
|
pure virtual |
Returns true if this object is pointing to the same handle as |that| object.
|
pure virtual |
Returns true if this is a text node.
|
pure virtual |
Set the value for the element attribute named |attrName|.
Returns true on success.
|
pure virtual |
Set the value of this node.
Returns true on success.