13#ifndef ROOT_cef_gui_handler_h
14#define ROOT_cef_gui_handler_h
16#include "include/cef_client.h"
17#include "include/base/cef_ref_counted.h"
18#include "include/cef_version.h"
19#include "include/wrapper/cef_resource_manager.h"
24namespace Experimental {
32#if CEF_VERSION_MAJOR < 95
75 virtual void OnAfterCreated(CefRefPtr<CefBrowser> browser)
override;
76 virtual bool DoClose(CefRefPtr<CefBrowser> browser)
override;
77 virtual void OnBeforeClose(CefRefPtr<CefBrowser> browser)
override;
80 virtual void OnLoadError(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, ErrorCode errorCode,
81 const CefString &errorText,
const CefString &failedUrl)
override;
84 virtual void OnTitleChange(CefRefPtr<CefBrowser> browser,
const CefString &title)
override;
87 cef_log_severity_t level,
88 const CefString &message,
const CefString &source,
98 CefRefPtr<CefBrowser> browser,
99 CefRefPtr<CefFrame> frame,
100 CefRefPtr<CefRequest> request,
103 const CefString& request_initiator,
104 bool& disable_default_handling)
override {
return this; }
108 CefRefPtr<CefBrowser> browser,
109 CefRefPtr<CefFrame> frame,
110 CefRefPtr<CefRequest> request,
111 CefRefPtr<CefResourceLoadCallBack> callback)
override;
114 CefRefPtr<CefBrowser> browser,
115 CefRefPtr<CefFrame> frame,
116 CefRefPtr<CefRequest> request)
override;
CefRefPtr< CefResourceManager > fResourceManager
int fConsole
! console parameter, assigned via WebGui.Console rootrc parameter
virtual CefRefPtr< CefDisplayHandler > GetDisplayHandler() override
std::vector< THttpServer * > fServers
virtual void OnBeforeClose(CefRefPtr< CefBrowser > browser) override
virtual CefRefPtr< CefResourceHandler > GetResourceHandler(CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request) override
virtual CefRefPtr< CefLoadHandler > GetLoadHandler() override
virtual bool DoClose(CefRefPtr< CefBrowser > browser) override
virtual CefRefPtr< CefLifeSpanHandler > GetLifeSpanHandler() override
void CloseAllBrowsers(bool force_close)
virtual CefRefPtr< CefRequestHandler > GetRequestHandler() override
IMPLEMENT_REFCOUNTING(GuiHandler)
void PlatformTitleChange(CefRefPtr< CefBrowser > browser, const CefString &title)
virtual CefRefPtr< CefResourceRequestHandler > GetResourceRequestHandler(CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request, bool is_navigation, bool is_download, const CefString &request_initiator, bool &disable_default_handling) override
virtual void OnLoadError(CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, ErrorCode errorCode, const CefString &errorText, const CefString &failedUrl) override
static std::string GetDataURI(const std::string &data, const std::string &mime_type)
bool fUseViews
! if view framework is used, required for true headless mode
std::string AddBatchPage(const std::string &cont)
Generate URL for batch page Uses file:/// prefix to let access JSROOT scripts placed on file system R...
std::string MakePageUrl(THttpServer *serv, const std::string &addr)
Generate URL for RWebWindow page Register server instance and assign it with the index Produced URL o...
virtual bool OnConsoleMessage(CefRefPtr< CefBrowser > browser, cef_log_severity_t level, const CefString &message, const CefString &source, int line) override
DISALLOW_COPY_AND_ASSIGN(GuiHandler)
std::list< CefRefPtr< CefBrowser > > BrowserList
! List of existing browser windows. Only accessed on the CEF UI thread.
virtual void OnTitleChange(CefRefPtr< CefBrowser > browser, const CefString &title) override
static bool PlatformInit()
virtual void OnAfterCreated(CefRefPtr< CefBrowser > browser) override
virtual cef_return_value_t OnBeforeResourceLoad(CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request, CefRefPtr< CefResourceLoadCallBack > callback) override
A log configuration for a channel, e.g.
ROOT::Experimental::RLogChannel & CefWebDisplayLog()
CefRequestCallback CefResourceLoadCallBack
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...