19#pragma GCC diagnostic ignored "-Wunused-parameter"
20#pragma GCC diagnostic ignored "-Wshadow"
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);
123#if defined(OS_WIN) || defined(OS_LINUX)
156 command_line->AppendSwitchWithValue(
"enable-logging",
"none");
180 bool is_batch =
addr.empty() && !
cont.empty();
209 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
void StartWindow(THttpServer *serv, const std::string &url, const std::string &cont, CefRect &rect)
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 OnBeforeCommandLineProcessing(const CefString &process_type, CefRefPtr< CefCommandLine > command_line) override
Online http server for arbitrary ROOT application.