Example #1
0
        /// <summary>
        /// Method executed for visiting the DOM. The document object passed to
        /// this method represents a snapshot of the DOM at the time this method
        /// is executed. DOM objects are only valid for the scope of this method.
        /// Do not keep references to or attempt to access any DOM objects
        /// outside the scope of this method.
        /// </summary>
        private void visit(cef_domvisitor_t *self, cef_domdocument_t *document)
        {
            ThrowIfObjectDisposed();

            var m_document = CefDomDocument.From(document);

            this.Visit(m_document);

            m_document.Dispose();
        }
 /// <summary>
 /// Method executed for visiting the DOM.
 /// The document object passed to this method represents a snapshot of the DOM at the time this method is executed.
 /// DOM objects are only valid for the scope of this method.
 /// Do not keep references to or attempt to access any DOM objects outside the scope of this method.
 /// </summary>
 protected abstract void Visit(CefDomDocument document);
Example #3
0
 /// <summary>
 /// Method executed for visiting the DOM.
 /// The document object passed to this method represents a snapshot of the DOM at the time this method is executed.
 /// DOM objects are only valid for the scope of this method.
 /// Do not keep references to or attempt to access any DOM objects outside the scope of this method.
 /// </summary>
 protected abstract void Visit(CefDomDocument document);
Example #4
0
        /// <summary>
        /// Returns the document associated with this node.
        /// </summary>
        public CefDomDocument GetDocument()
        {
            var n_document = cef_domnode_t.invoke_get_document(this.ptr);

            return(CefDomDocument.From(n_document));
        }
Example #5
0
 /// <summary>
 /// Returns the document associated with this event.
 /// </summary>
 public CefDomDocument GetDocument()
 {
     return(CefDomDocument.From(
                cef_domevent_t.invoke_get_document(this.ptr)
                ));
 }