Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(724)

Side by Side Diff: public/fpdfview.h

Issue 1730553002: Fixing whitespace lint errors. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Review fixes Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « public/fpdf_save.h ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename 7 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename
8 // despite lack of consitency with other public files. 8 // despite lack of consistency with other public files.
9 9
10 #ifndef PUBLIC_FPDFVIEW_H_ 10 #ifndef PUBLIC_FPDFVIEW_H_
11 #define PUBLIC_FPDFVIEW_H_ 11 #define PUBLIC_FPDFVIEW_H_
12 12
13 #if defined(_WIN32) && !defined(__WINDOWS__) 13 #if defined(_WIN32) && !defined(__WINDOWS__)
14 #include <windows.h> 14 #include <windows.h>
15 #endif 15 #endif
16 16
17 #ifdef PDF_ENABLE_XFA 17 #ifdef PDF_ENABLE_XFA
18 // TODO: remove the #define when XFA is officially in pdfium 18 // TODO: remove the #define when XFA is officially in pdfium
19 #define PDF_USE_XFA 19 #define PDF_USE_XFA
20 #endif // PDF_ENABLE_XFA 20 #endif // PDF_ENABLE_XFA
21 21
22 // PDF types 22 // PDF types
23 typedef void* FPDF_ACTION; 23 typedef void* FPDF_ACTION;
24 typedef void* FPDF_BITMAP; 24 typedef void* FPDF_BITMAP;
25 typedef void* FPDF_BOOKMARK; 25 typedef void* FPDF_BOOKMARK;
26 typedef void* FPDF_CLIPPATH; 26 typedef void* FPDF_CLIPPATH;
27 typedef void* FPDF_DEST; 27 typedef void* FPDF_DEST;
28 typedef void* FPDF_DOCSCHHANDLE; 28 typedef void* FPDF_DOCSCHHANDLE;
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 * 341 *
342 * @details This function is called under writing mode usually. Implementer 342 * @details This function is called under writing mode usually. Implementer
343 * can determine whether to realize it based on application requests. 343 * can determine whether to realize it based on application requests.
344 * 344 *
345 * @param[in] clientData Pointer to user-defined data. 345 * @param[in] clientData Pointer to user-defined data.
346 * @param[in] size New size of file stream, in bytes. 346 * @param[in] size New size of file stream, in bytes.
347 * 347 *
348 * @return 0 for success, other value for failure. 348 * @return 0 for success, other value for failure.
349 */ 349 */
350 FPDF_RESULT (*Truncate)(FPDF_LPVOID clientData, FPDF_DWORD size); 350 FPDF_RESULT (*Truncate)(FPDF_LPVOID clientData, FPDF_DWORD size);
351
352 } FPDF_FILEHANDLER, *FPDF_LPFILEHANDLER; 351 } FPDF_FILEHANDLER, *FPDF_LPFILEHANDLER;
353 352
354 #endif 353 #endif
355 // Function: FPDF_LoadCustomDocument 354 // Function: FPDF_LoadCustomDocument
356 // Load PDF document from a custom access descriptor. 355 // Load PDF document from a custom access descriptor.
357 // Parameters: 356 // Parameters:
358 // pFileAccess - A structure for accessing the file. 357 // pFileAccess - A structure for accessing the file.
359 // password - Optional password for decrypting the PDF file. 358 // password - Optional password for decrypting the PDF file.
360 // Return value: 359 // Return value:
361 // A handle to the loaded document, or NULL on failure. 360 // A handle to the loaded document, or NULL on failure.
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 // Function: FPDF_BStr_Clear 931 // Function: FPDF_BStr_Clear
933 // Helper function to clear a byte string. 932 // Helper function to clear a byte string.
934 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str); 933 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str);
935 #endif // PDF_ENABLE_XFA 934 #endif // PDF_ENABLE_XFA
936 935
937 #ifdef __cplusplus 936 #ifdef __cplusplus
938 } 937 }
939 #endif 938 #endif
940 939
941 #endif // PUBLIC_FPDFVIEW_H_ 940 #endif // PUBLIC_FPDFVIEW_H_
OLDNEW
« no previous file with comments | « public/fpdf_save.h ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698