Logo ROOT  
Reference Guide
RCefWebDisplayHandle Class Reference

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. More...
 
void CloseBrowser ()
 Closes associated browser window. More...
 
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. More...
 
- Public Member Functions inherited from ROOT::Experimental::RWebDisplayHandle
 RWebDisplayHandle (const std::string &url)
 constructor More...
 
virtual ~RWebDisplayHandle ()=default
 required virtual destructor for correct cleanup at the end More...
 
const std::string & GetContent () const
 get content More...
 
const std::string & GetUrl () const
 returns url of start web display More...
 
void SetContent (const std::string &cont)
 set content More...
 

Static Public Member Functions

static void AddCreator ()
 
- Static Public Member Functions inherited from ROOT::Experimental::RWebDisplayHandle
static std::unique_ptr< RWebDisplayHandleDisplay (const RWebDisplayArgs &args)
 Create web display. More...
 
static bool DisplayUrl (const std::string &url)
 Display provided url in configured web browser. More...
 
static bool ProduceImage (const std::string &fname, const std::string &json, int width=800, int height=600)
 Produce image file using JSON data as source Invokes JSROOT drawing functionality in headless browser - Google Chrome or Mozilla Firefox. More...
 

Protected Types

enum  EValidValues { kValid = 0x3C3C3C3C , kInvalid = 0x92929292 }
 

Protected Attributes

CefRefPtr< CefBrowser > fBrowser
 associated browser More...
 
unsigned fValid {kValid}
 used to verify if instance valid or not More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from ROOT::Experimental::RWebDisplayHandle
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. More...
 
static std::map< std::string, std::unique_ptr< Creator > > & GetMap ()
 Static holder of registered creators of web displays. More...
 

#include <RCefWebDisplayHandle.hxx>

Inheritance diagram for RCefWebDisplayHandle:
[legend]

Member Enumeration Documentation

◆ EValidValues

Enumerator
kValid 
kInvalid 

Definition at line 36 of file RCefWebDisplayHandle.hxx.

Constructor & Destructor Documentation

◆ RCefWebDisplayHandle()

RCefWebDisplayHandle::RCefWebDisplayHandle ( const std::string &  url)
inline

Definition at line 43 of file RCefWebDisplayHandle.hxx.

◆ ~RCefWebDisplayHandle()

RCefWebDisplayHandle::~RCefWebDisplayHandle ( )
virtual

Destructor Closes browser window if any.

Definition at line 219 of file RCefWebDisplayHandle.cxx.

Member Function Documentation

◆ AddCreator()

void RCefWebDisplayHandle::AddCreator ( )
static

Definition at line 281 of file RCefWebDisplayHandle.cxx.

◆ CloseBrowser()

void RCefWebDisplayHandle::CloseBrowser ( )

Closes associated browser window.

Definition at line 230 of file RCefWebDisplayHandle.cxx.

◆ IsValid()

bool RCefWebDisplayHandle::IsValid ( ) const
inline

Definition at line 47 of file RCefWebDisplayHandle.hxx.

◆ SetBrowser()

void RCefWebDisplayHandle::SetBrowser ( CefRefPtr< CefBrowser >  br)
inline

Definition at line 49 of file RCefWebDisplayHandle.hxx.

◆ WaitForContent()

bool RCefWebDisplayHandle::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.

Definition at line 245 of file RCefWebDisplayHandle.cxx.

Member Data Documentation

◆ fBrowser

CefRefPtr<CefBrowser> RCefWebDisplayHandle::fBrowser
protected

associated browser

Definition at line 40 of file RCefWebDisplayHandle.hxx.

◆ fValid

unsigned RCefWebDisplayHandle::fValid {kValid}
protected

used to verify if instance valid or not

Definition at line 38 of file RCefWebDisplayHandle.hxx.


The documentation for this class was generated from the following files: