Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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.
 
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.
 
- Public Member Functions inherited from ROOT::Experimental::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 ()
 
- Static Public Member Functions inherited from ROOT::Experimental::RWebDisplayHandle
static std::unique_ptr< RWebDisplayHandleDisplay (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)
 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 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.
 
static std::map< std::string, std::unique_ptr< Creator > > & GetMap ()
 Static holder of registered creators of web displays.
 

#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.

  • gui/cefdisplay/inc/RCefWebDisplayHandle.hxx
  • gui/cefdisplay/src/RCefWebDisplayHandle.cxx