Definition at line 24 of file RCefWebDisplayHandle.hxx.
Classes | |
class | CefCreator |
Public Member Functions | |
RCefWebDisplayHandle (const std::string &url) | |
~RCefWebDisplayHandle () override | |
Destructor Closes browser window if any. | |
void | CloseBrowser () |
Closes associated browser window. | |
bool | IsValid () const |
bool | Resize (int, int) override |
Resize browser window. | |
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. | |
Public Member Functions inherited from ROOT::RWebDisplayHandle | |
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 () |
Add CEF creator. | |
Static Public Member Functions inherited from ROOT::RWebDisplayHandle | |
static bool | CanProduceImages (const std::string &browser="") |
Returns true if image production for specified browser kind is supported If browser not specified - use currently configured browser or try to test existing web browsers. | |
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 std::string | GetImageFormat (const std::string &fname) |
Detect image format There is special handling of ".screenshot.pdf" and ".screenshot.png" extensions Creation of such files relies on headless browser functionality and fully supported only by Chrome browser. | |
static bool | NeedHttpServer (const RWebDisplayArgs &args) |
Check if http server required for display. | |
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. | |
static bool | ProduceImages (const std::string &fname, const std::vector< std::string > &jsons, const std::vector< int > &widths, const std::vector< int > &heights, const char *batch_file=nullptr) |
Produce image file(s) using JSON data as source Invokes JSROOT drawing functionality in headless browser - Google Chrome or Mozilla Firefox. | |
static bool | ProduceImages (const std::vector< std::string > &fnames, const std::vector< std::string > &jsons, const std::vector< int > &widths, const std::vector< int > &heights, const char *batch_file=nullptr) |
Produce image file(s) using JSON data as source Invokes JSROOT drawing functionality in headless browser - Google Chrome or Mozilla Firefox. | |
static std::vector< std::string > | ProduceImagesNames (const std::string &fname, unsigned nfiles=1) |
Produce vector of file names for specified file pattern Depending from supported file forma. | |
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 Protected Member Functions inherited from ROOT::RWebDisplayHandle | |
static bool | CheckIfCanProduceImages (RWebDisplayArgs &args) |
Checks if configured browser can be used for image production. | |
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.
|
override |
Destructor Closes browser window if any.
Definition at line 218 of file RCefWebDisplayHandle.cxx.
|
static |
Add CEF creator.
Definition at line 289 of file RCefWebDisplayHandle.cxx.
void RCefWebDisplayHandle::CloseBrowser | ( | ) |
Closes associated browser window.
Definition at line 228 of file RCefWebDisplayHandle.cxx.
|
inline |
Definition at line 47 of file RCefWebDisplayHandle.hxx.
Resize browser window.
Reimplemented from ROOT::RWebDisplayHandle.
Definition at line 279 of file RCefWebDisplayHandle.cxx.
|
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 241 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.