- Code: Select all
///
// Query the DOM document.
///
/*--cef()--*/
virtual void QueryDOM(CefRefPtr<CefDOMVisitor> domVisitor, CefRefPtr<CefStringVisitor> strVisitor) =0;
This would run from the browser process. Implementation would look similar to GetText, where the visitors are wrapped in CefResponseManager::Handler and then the command is sent to the render process. The renderer process would call domVisitor->VisitDOM(strVisitor) and the implementation of VisitDOM would call strVisitor->Visit() with the contents to return.
Does that seem reasonable or have I missed something that would prevent this? If it's feasible, I may take a run at it if we think it's something that would be generally useful/desirable.