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

Method GetPrintHandler

src/subprocess/cefpython_app.cpp:220–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220CefRefPtr<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
239void CefPythonApp::OnScheduleMessagePumpWork(int64 delay_ms) {
240#ifdef BROWSER_PROCESS

Callers

nothing calls this directly

Calls 1

InstallX11ErrorHandlersFunction · 0.85

Tested by

no test coverage detected