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

Method OnPrintStart

src/subprocess/print_handler_gtk.cpp:546–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546void ClientPrintHandlerGtk::OnPrintStart(CefRefPtr<CefBrowser> browser) {
547 CEF_REQUIRE_UI_THREAD();
548
549 const int browser_id = browser->GetIdentifier();
550
551#ifndef _NDEBUG
552 // Print handler should not already exist for the browser.
553 PrintHandlerMap::const_iterator it = print_handler_map_.find(browser_id);
554 DCHECK(it == print_handler_map_.end());
555#endif
556
557 // Create a new print handler.
558 PrintHandler* ph = new PrintHandler(browser);
559 print_handler_map_.insert(std::make_pair(browser_id, ph));
560}
561
562void ClientPrintHandlerGtk::OnPrintSettings(
563 CefRefPtr<CefBrowser> browser,

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected