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 {
68 bool DoClose(CefRefPtr<CefBrowser> browser)
override;
72 void OnLoadError(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, ErrorCode errorCode,
73 const CefString &errorText,
const CefString &failedUrl)
override;
76 void OnTitleChange(CefRefPtr<CefBrowser> browser,
const CefString &title)
override;
79 cef_log_severity_t level,
80 const CefString &message,
const CefString &source,
90 CefRefPtr<CefBrowser> browser,
91 CefRefPtr<CefFrame> frame,
92 CefRefPtr<CefRequest> request,
95 const CefString& request_initiator,
96 bool& disable_default_handling)
override {
return this; }
100 CefRefPtr<CefBrowser> browser,
101 CefRefPtr<CefFrame> frame,
102 CefRefPtr<CefRequest> request,
103 CefRefPtr<CefCallback> callback)
override;
106 CefRefPtr<CefBrowser> browser,
107 CefRefPtr<CefFrame> frame,
108 CefRefPtr<CefRequest> request)
override;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
CefRefPtr< CefResourceManager > fResourceManager
int fConsole
! console parameter, assigned via WebGui.Console rootrc parameter
std::vector< THttpServer * > fServers
void OnBeforeClose(CefRefPtr< CefBrowser > browser) override
CefRefPtr< CefResourceHandler > GetResourceHandler(CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request) override
bool DoClose(CefRefPtr< CefBrowser > browser) override
CefRefPtr< CefLifeSpanHandler > GetLifeSpanHandler() override
static bool PlatformResize(CefRefPtr< CefBrowser > browser, int width, int height)
void CloseAllBrowsers(bool force_close)
CefRefPtr< CefRequestHandler > GetRequestHandler() override
IMPLEMENT_REFCOUNTING(GuiHandler)
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
void PlatformTitleChange(CefRefPtr< CefBrowser > browser, const CefString &title)
CefRefPtr< CefDisplayHandler > GetDisplayHandler() override
cef_return_value_t OnBeforeResourceLoad(CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request, CefRefPtr< CefCallback > callback) override
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...
bool OnConsoleMessage(CefRefPtr< CefBrowser > browser, cef_log_severity_t level, const CefString &message, const CefString &source, int line) override
CefRefPtr< CefLoadHandler > GetLoadHandler() override
DISALLOW_COPY_AND_ASSIGN(GuiHandler)
std::list< CefRefPtr< CefBrowser > > BrowserList
! List of existing browser windows. Only accessed on the CEF UI thread.
void OnTitleChange(CefRefPtr< CefBrowser > browser, const CefString &title) override
static bool PlatformInit()
void OnAfterCreated(CefRefPtr< CefBrowser > browser) override
A log configuration for a channel, e.g.
Online http server for arbitrary ROOT application.
ROOT::Experimental::RLogChannel & CefWebDisplayLog()
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...