18#pragma GCC diagnostic ignored "-Wunused-parameter"
19#pragma GCC diagnostic ignored "-Wshadow"
28#include "include/base/cef_build.h"
29#include "include/cef_browser.h"
30#include "include/cef_version.h"
31#include "include/views/cef_browser_view.h"
32#include "include/views/cef_window.h"
33#include "include/wrapper/cef_helpers.h"
58 window->AddChildView(fBrowserView);
65 fBrowserView->RequestFocus();
76 return browser->GetHost()->TryCloseBrowser();
82 return CefSize(fWidth, fHeight);
88 IMPLEMENT_REFCOUNTING(SimpleWindowDelegate);
89 DISALLOW_COPY_AND_ASSIGN(SimpleWindowDelegate);
95 SimpleBrowserViewDelegate() {}
109 IMPLEMENT_REFCOUNTING(SimpleBrowserViewDelegate);
110 DISALLOW_COPY_AND_ASSIGN(SimpleBrowserViewDelegate);
124#if defined(OS_WIN) || defined(OS_LINUX)
157 command_line->AppendSwitchWithValue(
"enable-logging",
"none");
161 command_line->AppendSwitchWithValue(
"user-data-dir",
".");
162 command_line->AppendSwitch(
"allow-file-access-from-files");
164 command_line->AppendSwitch(
"off-screen-rendering-enabled");
170 command_line->AppendSwitchWithValue(
"use-angle",
"swiftshader");
171 command_line->AppendSwitch(
"enable-unsafe-swiftshader");
177 command_line->AppendSwitchWithValue(
"use-angle",
"metal");
186 command_line->AppendSwitchWithValue(
"use-gl",
"swiftshader");
189 command_line->AppendSwitch(
"enable-unsafe-swiftshader");
192 command_line->AppendSwitchWithValue(
"ozone-platform",
"headless");
246 CefWindow::CreateTopLevelWindow(
new SimpleWindowDelegate(
browser_view,
rect.width,
rect.height, is_batch));
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t rect
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
void SetBrowser(CefRefPtr< CefBrowser > br)
RCefWebDisplayHandle * fNextHandle
next handle where browser will be created
bool fNextHeadless
if next handle display is headless
std::string fFirstUrl
! first URL to open
void SetNextHandle(RCefWebDisplayHandle *handle, bool headless)
bool fUseViewes
! is views framework used
void OnContextInitialized() override
THttpServer * fFirstServer
! first server
bool fFirstHeadless
! is first window is headless
bool fSupressLog
! supress log output when possible
void OnBeforeChildProcessLaunch(CefRefPtr< CefCommandLine > command_line) override
CefRect fFirstRect
! original width
void OnRegisterCustomSchemes(CefRawPtr< CefSchemeRegistrar > registrar) override
CefRefPtr< GuiHandler > fGuiHandler
! normal handler
std::string fFirstContent
! first page content open
SimpleApp(bool use_viewes, bool supress_log, THttpServer *serv=nullptr, const std::string &url="", const std::string &cont="", int width=0, int height=0, bool headless=false)
void StartWindow(THttpServer *serv, const std::string &url, const std::string &cont, CefRect &rect, bool is_headless=false)
void OnBeforeCommandLineProcessing(const CefString &process_type, CefRefPtr< CefCommandLine > command_line) override
Online http server for arbitrary ROOT application.