| 218 | } |
| 219 | |
| 220 | CefRefPtr<CefPrintHandler> CefPythonApp::GetPrintHandler() { |
| 221 | #ifdef BROWSER_PROCESS |
| 222 | #if defined(OS_LINUX) |
| 223 | // For print handler to work GTK must be initialized. This is |
| 224 | // required for some of the examples. |
| 225 | // -- |
| 226 | // A similar code is in client_handler/x11.cpp. If making changes here, |
| 227 | // make changes there as well. |
| 228 | GdkDisplay* gdk_display = gdk_display_get_default(); |
| 229 | if (!gdk_display) { |
| 230 | LOG(INFO) << "[Browser process] Initialize GTK"; |
| 231 | gtk_init(0, NULL); |
| 232 | InstallX11ErrorHandlers(); |
| 233 | } |
| 234 | #endif |
| 235 | #endif |
| 236 | return print_handler_; |
| 237 | } |
| 238 | |
| 239 | void CefPythonApp::OnScheduleMessagePumpWork(int64 delay_ms) { |
| 240 | #ifdef BROWSER_PROCESS |
nothing calls this directly
no test coverage detected