Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
SimpleApp Class Reference

Definition at line 31 of file simple_app.h.

Public Member Functions

 SimpleApp (bool use_viewes, THttpServer *serv=nullptr, const std::string &url="", const std::string &cont="", int width=0, int height=0, bool headless=false)
 
CefRefPtr< CefBrowserProcessHandlerGetBrowserProcessHandler () override
 
void OnBeforeChildProcessLaunch (CefRefPtr< CefCommandLine > command_line) override
 
void OnBeforeCommandLineProcessing (const CefString &process_type, CefRefPtr< CefCommandLine > command_line) override
 
void OnContextInitialized () override
 
void OnRegisterCustomSchemes (CefRawPtr< CefSchemeRegistrar > registrar) override
 
void SetNextHandle (RCefWebDisplayHandle *handle)
 
void StartWindow (THttpServer *serv, const std::string &url, const std::string &cont, CefRect &rect)
 

Protected Attributes

std::string fFirstContent
 ! first page content open
 
bool fFirstHeadless {false}
 ! is first window is headless
 
CefRect fFirstRect
 ! original width
 
THttpServerfFirstServer
 ! first server
 
std::string fFirstUrl
 ! first URL to open
 
CefRefPtr< GuiHandlerfGuiHandler
 ! normal handler
 
RCefWebDisplayHandlefNextHandle {nullptr}
 next handle where browser will be created
 
bool fUseViewes {false}
 ! is views framework used
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (SimpleApp)
 
 IMPLEMENT_REFCOUNTING (SimpleApp)
 

#include <simple_app.h>

Inheritance diagram for SimpleApp:
[legend]

Constructor & Destructor Documentation

◆ SimpleApp()

SimpleApp::SimpleApp ( bool  use_viewes,
THttpServer serv = nullptr,
const std::string &  url = "",
const std::string &  cont = "",
int  width = 0,
int  height = 0,
bool  headless = false 
)

Definition at line 112 of file simple_app.cxx.

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

SimpleApp::DISALLOW_COPY_AND_ASSIGN ( SimpleApp  )
private

◆ GetBrowserProcessHandler()

CefRefPtr< CefBrowserProcessHandler > SimpleApp::GetBrowserProcessHandler ( )
inlineoverride

Definition at line 56 of file simple_app.h.

◆ IMPLEMENT_REFCOUNTING()

SimpleApp::IMPLEMENT_REFCOUNTING ( SimpleApp  )
private

◆ OnBeforeChildProcessLaunch()

void SimpleApp::OnBeforeChildProcessLaunch ( CefRefPtr< CefCommandLine >  command_line)
override

Definition at line 157 of file simple_app.cxx.

◆ OnBeforeCommandLineProcessing()

void SimpleApp::OnBeforeCommandLineProcessing ( const CefString &  process_type,
CefRefPtr< CefCommandLine >  command_line 
)
override

Definition at line 146 of file simple_app.cxx.

◆ OnContextInitialized()

void SimpleApp::OnContextInitialized ( )
override

Definition at line 168 of file simple_app.cxx.

◆ OnRegisterCustomSchemes()

void SimpleApp::OnRegisterCustomSchemes ( CefRawPtr< CefSchemeRegistrar >  registrar)
override

Definition at line 140 of file simple_app.cxx.

◆ SetNextHandle()

void SimpleApp::SetNextHandle ( RCefWebDisplayHandle handle)

Definition at line 134 of file simple_app.cxx.

◆ StartWindow()

void SimpleApp::StartWindow ( THttpServer serv,
const std::string &  url,
const std::string &  cont,
CefRect &  rect 
)

Definition at line 180 of file simple_app.cxx.

Member Data Documentation

◆ fFirstContent

std::string SimpleApp::fFirstContent
protected

! first page content open

Definition at line 41 of file simple_app.h.

◆ fFirstHeadless

bool SimpleApp::fFirstHeadless {false}
protected

! is first window is headless

Definition at line 43 of file simple_app.h.

◆ fFirstRect

CefRect SimpleApp::fFirstRect
protected

! original width

Definition at line 42 of file simple_app.h.

◆ fFirstServer

THttpServer* SimpleApp::fFirstServer
protected

! first server

Definition at line 39 of file simple_app.h.

◆ fFirstUrl

std::string SimpleApp::fFirstUrl
protected

! first URL to open

Definition at line 40 of file simple_app.h.

◆ fGuiHandler

CefRefPtr<GuiHandler> SimpleApp::fGuiHandler
protected

! normal handler

Definition at line 46 of file simple_app.h.

◆ fNextHandle

RCefWebDisplayHandle* SimpleApp::fNextHandle {nullptr}
protected

next handle where browser will be created

Definition at line 44 of file simple_app.h.

◆ fUseViewes

bool SimpleApp::fUseViewes {false}
protected

! is views framework used

Definition at line 38 of file simple_app.h.

  • gui/cefdisplay/inc/simple_app.h
  • gui/cefdisplay/src/simple_app.cxx