mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply clang-format to all C, C++ and ObjC files (issue #2171)
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
// by hand. See the translator.README.txt file in the tools directory for
|
||||
// more information.
|
||||
//
|
||||
// $hash=e8f6bdc822cf4f5c32b22ba8b5cacb25823d8971$
|
||||
//
|
||||
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_PRINT_HANDLER_CAPI_H_
|
||||
#define CEF_INCLUDE_CAPI_CEF_PRINT_HANDLER_CAPI_H_
|
||||
@@ -46,7 +48,6 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
///
|
||||
// Callback structure for asynchronous continuation of print dialog requests.
|
||||
///
|
||||
@@ -59,16 +60,15 @@ typedef struct _cef_print_dialog_callback_t {
|
||||
///
|
||||
// Continue printing with the specified |settings|.
|
||||
///
|
||||
void (CEF_CALLBACK *cont)(struct _cef_print_dialog_callback_t* self,
|
||||
struct _cef_print_settings_t* settings);
|
||||
void(CEF_CALLBACK* cont)(struct _cef_print_dialog_callback_t* self,
|
||||
struct _cef_print_settings_t* settings);
|
||||
|
||||
///
|
||||
// Cancel the printing.
|
||||
///
|
||||
void (CEF_CALLBACK *cancel)(struct _cef_print_dialog_callback_t* self);
|
||||
void(CEF_CALLBACK* cancel)(struct _cef_print_dialog_callback_t* self);
|
||||
} cef_print_dialog_callback_t;
|
||||
|
||||
|
||||
///
|
||||
// Callback structure for asynchronous continuation of print job requests.
|
||||
///
|
||||
@@ -81,10 +81,9 @@ typedef struct _cef_print_job_callback_t {
|
||||
///
|
||||
// Indicate completion of the print job.
|
||||
///
|
||||
void (CEF_CALLBACK *cont)(struct _cef_print_job_callback_t* self);
|
||||
void(CEF_CALLBACK* cont)(struct _cef_print_job_callback_t* self);
|
||||
} cef_print_job_callback_t;
|
||||
|
||||
|
||||
///
|
||||
// Implement this structure to handle printing on Linux. The functions of this
|
||||
// structure will be called on the browser process UI thread.
|
||||
@@ -101,48 +100,52 @@ typedef struct _cef_print_handler_t {
|
||||
// how printing was initiated (e.g. cef_browser_host_t::print(), JavaScript
|
||||
// window.print() or PDF extension print button).
|
||||
///
|
||||
void (CEF_CALLBACK *on_print_start)(struct _cef_print_handler_t* self,
|
||||
struct _cef_browser_t* browser);
|
||||
void(CEF_CALLBACK* on_print_start)(struct _cef_print_handler_t* self,
|
||||
struct _cef_browser_t* browser);
|
||||
|
||||
///
|
||||
// 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.
|
||||
///
|
||||
void (CEF_CALLBACK *on_print_settings)(struct _cef_print_handler_t* self,
|
||||
struct _cef_print_settings_t* settings, int get_defaults);
|
||||
void(CEF_CALLBACK* on_print_settings)(struct _cef_print_handler_t* self,
|
||||
struct _cef_print_settings_t* settings,
|
||||
int get_defaults);
|
||||
|
||||
///
|
||||
// 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.
|
||||
///
|
||||
int (CEF_CALLBACK *on_print_dialog)(struct _cef_print_handler_t* self,
|
||||
int has_selection, struct _cef_print_dialog_callback_t* callback);
|
||||
int(CEF_CALLBACK* on_print_dialog)(
|
||||
struct _cef_print_handler_t* self,
|
||||
int has_selection,
|
||||
struct _cef_print_dialog_callback_t* callback);
|
||||
|
||||
///
|
||||
// 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.
|
||||
///
|
||||
int (CEF_CALLBACK *on_print_job)(struct _cef_print_handler_t* self,
|
||||
const cef_string_t* document_name, const cef_string_t* pdf_file_path,
|
||||
struct _cef_print_job_callback_t* callback);
|
||||
int(CEF_CALLBACK* on_print_job)(struct _cef_print_handler_t* self,
|
||||
const cef_string_t* document_name,
|
||||
const cef_string_t* pdf_file_path,
|
||||
struct _cef_print_job_callback_t* callback);
|
||||
|
||||
///
|
||||
// Reset client state related to printing.
|
||||
///
|
||||
void (CEF_CALLBACK *on_print_reset)(struct _cef_print_handler_t* self);
|
||||
void(CEF_CALLBACK* on_print_reset)(struct _cef_print_handler_t* self);
|
||||
|
||||
///
|
||||
// Return the PDF paper size in device units. Used in combination with
|
||||
// cef_browser_host_t::print_to_pdf().
|
||||
///
|
||||
cef_size_t (CEF_CALLBACK *get_pdf_paper_size)(
|
||||
struct _cef_print_handler_t* self, int device_units_per_inch);
|
||||
cef_size_t(CEF_CALLBACK* get_pdf_paper_size)(
|
||||
struct _cef_print_handler_t* self,
|
||||
int device_units_per_inch);
|
||||
} cef_print_handler_t;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user