Definition at line 24 of file RCefWebDisplayHandle.hxx.
Classes | |
class | CefCreator |
Public Member Functions | |
RCefWebDisplayHandle (const std::string &url) | |
virtual | ~RCefWebDisplayHandle () |
Destructor Closes browser window if any. | |
void | CloseBrowser () |
Closes associated browser window. | |
bool | IsValid () const |
void | SetBrowser (CefRefPtr< CefBrowser > br) |
bool | WaitForContent (int tmout_sec, const std::string &extra_args) |
Process system events until browser content is available Used in headless mode for batch production like chrome –dump-dom is doing. | |
![]() | |
RWebDisplayHandle (const std::string &url) | |
constructor | |
virtual | ~RWebDisplayHandle ()=default |
required virtual destructor for correct cleanup at the end | |
const std::string & | GetContent () const |
get content | |
const std::string & | GetUrl () const |
returns url of start web display | |
void | SetContent (const std::string &cont) |
set content | |
Static Public Member Functions | |
static void | AddCreator () |
![]() | |
static std::unique_ptr< RWebDisplayHandle > | Display (const RWebDisplayArgs &args) |
Create web display. | |
static bool | DisplayUrl (const std::string &url) |
Display provided url in configured web browser. | |
static bool | ProduceImage (const std::string &fname, const std::string &json, int width=800, int height=600, const char *batch_file=nullptr) |
Produce image file using JSON data as source Invokes JSROOT drawing functionality in headless browser - Google Chrome or Mozilla Firefox. | |
Protected Types | |
enum | EValidValues { kValid = 0x3C3C3C3C , kInvalid = 0x92929292 } |
Protected Attributes | |
CefRefPtr< CefBrowser > | fBrowser |
associated browser | |
unsigned | fValid {kValid} |
used to verify if instance valid or not | |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< Creator > & | FindCreator (const std::string &name, const std::string &libname="") |
Search for specific browser creator If not found, try to add one. | |
static std::map< std::string, std::unique_ptr< Creator > > & | GetMap () |
Static holder of registered creators of web displays. | |
#include <RCefWebDisplayHandle.hxx>
|
protected |
Enumerator | |
---|---|
kValid | |
kInvalid |
Definition at line 36 of file RCefWebDisplayHandle.hxx.
|
inline |
Definition at line 43 of file RCefWebDisplayHandle.hxx.
|
virtual |
Destructor Closes browser window if any.
Definition at line 219 of file RCefWebDisplayHandle.cxx.
|
static |
Definition at line 281 of file RCefWebDisplayHandle.cxx.
void RCefWebDisplayHandle::CloseBrowser | ( | ) |
Closes associated browser window.
Definition at line 230 of file RCefWebDisplayHandle.cxx.
|
inline |
Definition at line 47 of file RCefWebDisplayHandle.hxx.
|
inline |
Definition at line 49 of file RCefWebDisplayHandle.hxx.
Process system events until browser content is available Used in headless mode for batch production like chrome –dump-dom is doing.
Definition at line 245 of file RCefWebDisplayHandle.cxx.
|
protected |
associated browser
Definition at line 40 of file RCefWebDisplayHandle.hxx.
|
protected |
used to verify if instance valid or not
Definition at line 38 of file RCefWebDisplayHandle.hxx.