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 CefDOMDocument

CefBaseRefCounted
   |
   +--CefDOMDocument

   in cef_dom.h

class CefDOMDocument
extends CefBaseRefCounted

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


Inner Classes, Typedefs, and Enums
typedef CefDOMDocument::Type
          
 
Method Summary
 virtual CefString GetBaseURL()= 0
          Returns the base URL for the document.
 virtual CefRefPtr< CefDOMNode > GetBody()= 0
          Returns the BODY node of an HTML document.
 virtual CefString GetCompleteURL( const CefString& partialURL )= 0
          Returns a complete URL based on the document base URL and the specified partial URL.
 virtual CefRefPtr< CefDOMNode > GetDocument()= 0
          Returns the root document node.
 virtual CefRefPtr< CefDOMNode > GetElementById( const CefString& id )= 0
          Returns the document element with the specified ID value.
 virtual CefRefPtr< CefDOMNode > GetFocusedNode()= 0
          Returns the node that currently has keyboard focus.
 virtual CefRefPtr< CefDOMNode > GetHead()= 0
          Returns the HEAD node of an HTML document.
 virtual CefString GetSelectionAsMarkup()= 0
          Returns the contents of this selection as markup.
 virtual CefString GetSelectionAsText()= 0
          Returns the contents of this selection as text.
 virtual int GetSelectionEndOffset()= 0
          Returns the selection offset within the end node.
 virtual int GetSelectionStartOffset()= 0
          Returns the selection offset within the start node.
 virtual CefString GetTitle()= 0
          Returns the title of an HTML document.
 virtual CefDOMDocument::Type GetType()= 0
          Returns the document type.
 virtual bool HasSelection()= 0
          Returns true if a portion of the document is selected.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

GetBaseURL

public virtual CefString GetBaseURL()= 0;
Returns the base URL for the document.

GetBody

public virtual CefRefPtr< CefDOMNode > GetBody()= 0;
Returns the BODY node of an HTML document.

GetCompleteURL

public virtual CefString GetCompleteURL( const CefString& partialURL )= 0;
Returns a complete URL based on the document base URL and the specified partial URL.

GetDocument

public virtual CefRefPtr< CefDOMNode > GetDocument()= 0;
Returns the root document node.

GetElementById

public virtual CefRefPtr< CefDOMNode > GetElementById( const CefString& id )= 0;
Returns the document element with the specified ID value.

GetFocusedNode

public virtual CefRefPtr< CefDOMNode > GetFocusedNode()= 0;
Returns the node that currently has keyboard focus.

GetHead

public virtual CefRefPtr< CefDOMNode > GetHead()= 0;
Returns the HEAD node of an HTML document.

GetSelectionAsMarkup

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

GetSelectionAsText

public virtual CefString GetSelectionAsText()= 0;
Returns the contents of this selection as text.

GetSelectionEndOffset

public virtual int GetSelectionEndOffset()= 0;
Returns the selection offset within the end node.

GetSelectionStartOffset

public virtual int GetSelectionStartOffset()= 0;
Returns the selection offset within the start node.

GetTitle

public virtual CefString GetTitle()= 0;
Returns the title of an HTML document.

GetType

public virtual CefDOMDocument::Type GetType()= 0;
Returns the document type.

HasSelection

public virtual bool HasSelection()= 0;
Returns true if a portion of the document is selected.

 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