- base
cef_base_ref_counted_t base;
- get_pdf_paper_size
cef_size_t function(cef_print_handler_t* self, cef_browser_t* browser, int device_units_per_inch) nothrow get_pdf_paper_size;
Return the PDF paper size in device units. Used in combination with
- on_print_dialog
int function(cef_print_handler_t* self, cef_browser_t* browser, int has_selection, cef_print_dialog_callback_t* callback) nothrow on_print_dialog;
Show the print dialog. Execute |callback| once the dialog is dismissed.
Return true (1) if the dialog will be displayed or false (0) to cancel the
printing immediately.
- on_print_job
int function(cef_print_handler_t* self, cef_browser_t* browser, const(cef_string_t)* document_name, const(cef_string_t)* pdf_file_path, cef_print_job_callback_t* callback) nothrow on_print_job;
Send the print job to the printer. Execute |callback| once the job is
completed. Return true (1) if the job will proceed or false (0) to cancel
the job immediately.
- on_print_reset
void function(cef_print_handler_t* self, cef_browser_t* browser) nothrow on_print_reset;
Reset client state related to printing.
- on_print_settings
void function(cef_print_handler_t* self, cef_browser_t* browser, cef_print_settings_t* settings, int get_defaults) nothrow on_print_settings;
Synchronize |settings| with client state. If |get_defaults| is true (1)
then populate |settings| with the default print settings. Do not keep a
reference to |settings| outside of this callback.
- on_print_start
void function(cef_print_handler_t* self, cef_browser_t* browser) nothrow on_print_start;
Called when printing has started for the specified |browser|. This
function will be called before the other OnPrint*() functions and
irrespective of how printing was initiated (e.g.
Implement this structure to handle printing on Linux. Each browser will have only one print job in progress at a time. The functions of this structure will be called on the browser process UI thread.