MCPcopy Create free account
hub / github.com/cztomczak/cefpython / OnBeforeChildProcessLaunch

Method OnBeforeChildProcessLaunch

src/subprocess/cefpython_app.cpp:176–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void CefPythonApp::OnBeforeChildProcessLaunch(
177 CefRefPtr<CefCommandLine> command_line) {
178#ifdef BROWSER_PROCESS
179 // This is included only in the Browser process, when building
180 // the libcefpythonapp library.
181#if defined(OS_WINDOWS)
182 if (IsProcessDpiAware()) {
183 // It is required to set DPI awareness in subprocesses
184 // as well, see Issue #358.
185 command_line->AppendSwitch("enable-high-dpi-support");
186 }
187#endif // OS_WINDOWS
188 BrowserProcessHandler_OnBeforeChildProcessLaunch(command_line);
189#endif // BROWSER_PROCESS
190
191#ifdef BROWSER_PROCESS
192 std::string logMessage = "[Browser process] ";
193#else
194 std::string logMessage = "[Non-browser process] ";
195#endif // BROWSER_PROCESS
196 logMessage.append("OnBeforeChildProcessLaunch() command line: ");
197 std::string clString = command_line->GetCommandLineString().ToString();
198 logMessage.append(clString.c_str());
199 LOG(INFO) << logMessage.c_str();
200}
201
202void CefPythonApp::OnRenderProcessThreadCreated(
203 CefRefPtr<CefListValue> extra_info) {

Callers

nothing calls this directly

Calls 3

IsProcessDpiAwareFunction · 0.85
ToStringMethod · 0.80
c_strMethod · 0.80

Tested by

no test coverage detected