| 174 | } |
| 175 | |
| 176 | void 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 | |
| 202 | void CefPythonApp::OnRenderProcessThreadCreated( |
| 203 | CefRefPtr<CefListValue> extra_info) { |
nothing calls this directly
no test coverage detected