From 9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 4 Aug 2015 13:00:21 -0700 Subject: XFA: clang-format all pdfium code. No behavior change. Generated by: find . -name '*.cpp' -o -name '*.h' | \ grep -E -v 'third_party|thirdparties|lpng_v163|tiff_v403' | \ xargs ../../buildtools/mac/clang-format -i Then manually merged https://codereview.chromium.org/1269223002/ See thread "tabs vs spaces" on pdfium@googlegroups.com for discussion. BUG=none --- public/fpdf_ext.h | 114 +++++++++++++++++++++++++++--------------------------- 1 file changed, 58 insertions(+), 56 deletions(-) (limited to 'public/fpdf_ext.h') diff --git a/public/fpdf_ext.h b/public/fpdf_ext.h index 8016d2ebc4..c80dcbbf58 100644 --- a/public/fpdf_ext.h +++ b/public/fpdf_ext.h @@ -13,45 +13,44 @@ extern "C" { #endif -//flags for type of unsupport object. -#define FPDF_UNSP_DOC_XFAFORM 1 -#define FPDF_UNSP_DOC_PORTABLECOLLECTION 2 -#define FPDF_UNSP_DOC_ATTACHMENT 3 -#define FPDF_UNSP_DOC_SECURITY 4 -#define FPDF_UNSP_DOC_SHAREDREVIEW 5 -#define FPDF_UNSP_DOC_SHAREDFORM_ACROBAT 6 +// flags for type of unsupport object. +#define FPDF_UNSP_DOC_XFAFORM 1 +#define FPDF_UNSP_DOC_PORTABLECOLLECTION 2 +#define FPDF_UNSP_DOC_ATTACHMENT 3 +#define FPDF_UNSP_DOC_SECURITY 4 +#define FPDF_UNSP_DOC_SHAREDREVIEW 5 +#define FPDF_UNSP_DOC_SHAREDFORM_ACROBAT 6 #define FPDF_UNSP_DOC_SHAREDFORM_FILESYSTEM 7 -#define FPDF_UNSP_DOC_SHAREDFORM_EMAIL 8 -#define FPDF_UNSP_ANNOT_3DANNOT 11 -#define FPDF_UNSP_ANNOT_MOVIE 12 -#define FPDF_UNSP_ANNOT_SOUND 13 -#define FPDF_UNSP_ANNOT_SCREEN_MEDIA 14 -#define FPDF_UNSP_ANNOT_SCREEN_RICHMEDIA 15 -#define FPDF_UNSP_ANNOT_ATTACHMENT 16 -#define FPDF_UNSP_ANNOT_SIG 17 - -typedef struct _UNSUPPORT_INFO -{ - /** - * Version number of the interface. Currently must be 1. - **/ - int version; - - /** - * Method: FSDK_UnSupport_Handler - * UnSupport Object process handling function. - * Interface Version: - * 1 - * Implementation Required: - * Yes - * Parameters: - * pThis - Pointer to the interface structure itself. - * nType - The type of unsupportObject - * Return value: - * None. - * */ - - void(*FSDK_UnSupport_Handler)(struct _UNSUPPORT_INFO* pThis, int nType); +#define FPDF_UNSP_DOC_SHAREDFORM_EMAIL 8 +#define FPDF_UNSP_ANNOT_3DANNOT 11 +#define FPDF_UNSP_ANNOT_MOVIE 12 +#define FPDF_UNSP_ANNOT_SOUND 13 +#define FPDF_UNSP_ANNOT_SCREEN_MEDIA 14 +#define FPDF_UNSP_ANNOT_SCREEN_RICHMEDIA 15 +#define FPDF_UNSP_ANNOT_ATTACHMENT 16 +#define FPDF_UNSP_ANNOT_SIG 17 + +typedef struct _UNSUPPORT_INFO { + /** + * Version number of the interface. Currently must be 1. + **/ + int version; + + /** + * Method: FSDK_UnSupport_Handler + * UnSupport Object process handling function. + * Interface Version: + * 1 + * Implementation Required: + * Yes + * Parameters: + * pThis - Pointer to the interface structure itself. + * nType - The type of unsupportObject + * Return value: + * None. + * */ + + void (*FSDK_UnSupport_Handler)(struct _UNSUPPORT_INFO* pThis, int nType); } UNSUPPORT_INFO; /** @@ -63,37 +62,40 @@ typedef struct _UNSUPPORT_INFO * TRUE means successful. FALSE means fails. **/ -DLLEXPORT FPDF_BOOL STDCALL FSDK_SetUnSpObjProcessHandler(UNSUPPORT_INFO* unsp_info); +DLLEXPORT FPDF_BOOL STDCALL +FSDK_SetUnSpObjProcessHandler(UNSUPPORT_INFO* unsp_info); -//flags for page mode. +// flags for page mode. -//Unknown value -#define PAGEMODE_UNKNOWN -1 +// Unknown value +#define PAGEMODE_UNKNOWN -1 -//Neither document outline nor thumbnail images visible -#define PAGEMODE_USENONE 0 +// Neither document outline nor thumbnail images visible +#define PAGEMODE_USENONE 0 -//Document outline visible -#define PAGEMODE_USEOUTLINES 1 +// Document outline visible +#define PAGEMODE_USEOUTLINES 1 -//Thumbnial images visible -#define PAGEMODE_USETHUMBS 2 +// Thumbnial images visible +#define PAGEMODE_USETHUMBS 2 -//Full-screen mode, with no menu bar, window controls, or any other window visible -#define PAGEMODE_FULLSCREEN 3 +// Full-screen mode, with no menu bar, window controls, or any other window +// visible +#define PAGEMODE_FULLSCREEN 3 -//Optional content group panel visible -#define PAGEMODE_USEOC 4 +// Optional content group panel visible +#define PAGEMODE_USEOC 4 -//Attachments panel visible +// Attachments panel visible #define PAGEMODE_USEATTACHMENTS 5 - /** * Function: FPDFDoc_GetPageMode - * Get the document's PageMode(How the document should be displayed when opened) + * Get the document's PageMode(How the document should be displayed + *when opened) * Parameters: - * doc - Handle to document. Returned by FPDF_LoadDocument function. + * doc - Handle to document. Returned by FPDF_LoadDocument + *function. * Return Value: * The flags for page mode. **/ -- cgit v1.2.3