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);
62 fBrowserView->RequestFocus();
72 return browser->GetHost()->TryCloseBrowser();
78 return CefSize(fWidth, fHeight);
84 IMPLEMENT_REFCOUNTING(SimpleWindowDelegate);
85 DISALLOW_COPY_AND_ASSIGN(SimpleWindowDelegate);
91 SimpleBrowserViewDelegate() {}
105 IMPLEMENT_REFCOUNTING(SimpleBrowserViewDelegate);
106 DISALLOW_COPY_AND_ASSIGN(SimpleBrowserViewDelegate);
119#if defined(OS_WIN) || defined(OS_LINUX)
213 CefWindow::CreateTopLevelWindow(
new SimpleWindowDelegate(
browser_view,
rect.width,
rect.height));
235 #elif defined(OS_LINUX)
#define R__LOG_ERROR(...)
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
SimpleApp(bool use_viewes, THttpServer *serv=nullptr, const std::string &url="", const std::string &cont="", int width=0, int height=0, bool headless=false)
std::string fFirstUrl
! first URL to open
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)
void OnBeforeChildProcessLaunch(CefRefPtr< CefCommandLine > command_line) override
CefRect fFirstRect
! original width
void SetNextHandle(RCefWebDisplayHandle *handle)
void OnRegisterCustomSchemes(CefRawPtr< CefSchemeRegistrar > registrar) override
CefRefPtr< GuiHandler > fGuiHandler
! normal handler
std::string fFirstContent
! first page content open
void OnBeforeCommandLineProcessing(const CefString &process_type, CefRefPtr< CefCommandLine > command_line) override
Online http server for arbitrary ROOT application.
ROOT::RLogChannel & CefWebDisplayLog()