ROOT
Version v6.32
master
v6.34
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
►
graf3d
▼
gui
►
browsable
►
browserv7
►
canvaspainter
▼
cefdisplay
doc
►
inc
▼
src
►
cef_main.cxx
►
gui_handler.cxx
gui_handler_linux.cxx
gui_handler_mac.mm
gui_handler_win.cc
►
RCefWebDisplayHandle.cxx
simple_app.cxx
doc
►
fitpanel
►
fitpanelv7
►
ged
►
gui
►
guibuilder
►
guihtml
►
qt5webdisplay
►
qt6webdisplay
►
recorder
►
sessionviewer
►
webdisplay
►
webgui6
►
hist
►
html
►
io
►
main
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
►
tutorials
►
v6-32-00-patches
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
cef_main.cxx
Go to the documentation of this file.
1
// Author: Sergey Linev <S.Linev@gsi.de>
2
// Date: 2017-06-29
3
// Warning: This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
4
5
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
6
// reserved. Use of this source code is governed by a BSD-style license that
7
// can be found in the LICENSE file.
8
9
/*************************************************************************
10
* Copyright (C) 1995-2023, Rene Brun and Fons Rademakers. *
11
* All rights reserved. *
12
* *
13
* For the licensing terms see $ROOTSYS/LICENSE. *
14
* For the list of contributors see $ROOTSYS/README/CREDITS. *
15
*************************************************************************/
16
17
#if !defined(_MSC_VER)
18
#pragma GCC diagnostic ignored "-Wunused-parameter"
19
#pragma GCC diagnostic ignored "-Wshadow"
20
#endif
21
22
#include "include/base/cef_build.h"
23
#include "include/cef_app.h"
24
25
#if !defined(OS_WIN)
26
#include <unistd.h>
27
#endif
28
29
// #include "include/cef_render_process_handler.h"
30
#include "include/base/cef_logging.h"
31
32
// Implement application-level callbacks for the browser process.
33
class
MyRendererProcessApp
:
public
CefApp
/*, public CefRenderProcessHandler */
{
34
35
public
:
36
MyRendererProcessApp
() :
CefApp
()
/*, CefRenderProcessHandler() */
{}
37
~MyRendererProcessApp
()
override
{}
38
39
// CefRefPtr< CefRenderProcessHandler > GetRenderProcessHandler() override { return this; }
40
41
// void OnRegisterCustomSchemes(CefRawPtr<CefSchemeRegistrar> registrar) override
42
// {
43
// // registrar->AddCustomScheme("rootscheme", true, true, true, true, true, true);
44
// }
45
46
47
private
:
48
// Include the default reference counting implementation.
49
IMPLEMENT_REFCOUNTING
(
MyRendererProcessApp
);
50
DISALLOW_COPY_AND_ASSIGN
(
MyRendererProcessApp
);
51
};
52
53
// Entry point function for all processes.
54
int
main
(
int
argc
,
char
*
argv
[])
55
{
56
57
#if defined(OS_WIN)
58
CefMainArgs
main_args
(
::GetModuleHandle
(
NULL
));
59
#else
60
// Provide CEF with command-line arguments.
61
CefMainArgs
main_args
(
argc
,
argv
);
62
#endif
63
64
CefRefPtr<CefApp>
app
=
new
MyRendererProcessApp
();
65
66
// CEF applications have multiple sub-processes (render, plugin, GPU, etc)
67
// that share the same executable. This function checks the command-line and,
68
// if this is a sub-process, executes the appropriate logic.
69
int
exit_code
=
CefExecuteProcess
(
main_args
,
app
,
NULL
);
70
if
(
exit_code
>= 0) {
71
// The sub-process has completed so return here.
72
return
exit_code
;
73
}
74
75
return
0;
76
}
main
int main()
Definition
Prototype.cxx:12
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
CefApp
MyRendererProcessApp
Definition
cef_main.cxx:33
MyRendererProcessApp::~MyRendererProcessApp
~MyRendererProcessApp() override
Definition
cef_main.cxx:37
MyRendererProcessApp::IMPLEMENT_REFCOUNTING
IMPLEMENT_REFCOUNTING(MyRendererProcessApp)
MyRendererProcessApp::MyRendererProcessApp
MyRendererProcessApp()
Definition
cef_main.cxx:36
MyRendererProcessApp::DISALLOW_COPY_AND_ASSIGN
DISALLOW_COPY_AND_ASSIGN(MyRendererProcessApp)
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
gui
cefdisplay
src
cef_main.cxx
ROOT v6-32 - Reference Guide Generated on Mon Apr 7 2025 15:27:56 (GVA Time) using Doxygen 1.10.0