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

Side by Side Diff: public/fpdf_flatten.h

Issue 1265503005: clang-format all pdfium code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: sigh Created 5 years, 4 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
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 #ifndef PUBLIC_FPDF_FLATTEN_H_ 7 #ifndef PUBLIC_FPDF_FLATTEN_H_
8 #define PUBLIC_FPDF_FLATTEN_H_ 8 #define PUBLIC_FPDF_FLATTEN_H_
9 9
10 #include "fpdfview.h" 10 #include "fpdfview.h"
11 11
12 // Result codes. 12 // Result codes.
13 #define FLATTEN_FAIL 0 // Flatten operation failed. 13 #define FLATTEN_FAIL 0 // Flatten operation failed.
14 #define FLATTEN_SUCCESS 1 // Flatten operation succeed. 14 #define FLATTEN_SUCCESS 1 // Flatten operation succeed.
15 #define FLATTEN_NOTHINGTODO 2 // There is nothing to be flattened. 15 #define FLATTEN_NOTHINGTODO 2 // There is nothing to be flattened.
16 16
17 // Flags. 17 // Flags.
18 #define FLAT_NORMALDISPLAY 0 18 #define FLAT_NORMALDISPLAY 0
19 #define FLAT_PRINT 1 19 #define FLAT_PRINT 1
20 20
21 #ifdef __cplusplus 21 #ifdef __cplusplus
22 extern "C" { 22 extern "C" {
23 #endif 23 #endif
24 24
25 // Function: FPDFPage_Flatten 25 // Function: FPDFPage_Flatten
26 // Make annotations and form fields become part of the page contents it self. 26 // Make annotations and form fields become part of the page contents
27 // itself.
27 // Parameters: 28 // Parameters:
28 // page - Handle to the page, as returned by FPDF_LoadPage(). 29 // page - Handle to the page, as returned by FPDF_LoadPage().
29 // nFlag - Intended use of the flattened result: 0 for normal display, 1 for printing. 30 // nFlag - Intended use of the flattened result: 0 for normal display,
31 // 1 for printing.
30 // Return value: 32 // Return value:
31 // Either FLATTEN_FAIL, FLATTEN_SUCCESS, or FLATTEN_NOTHINGTODO (see ab ove). 33 // Either FLATTEN_FAIL, FLATTEN_SUCCESS, or FLATTEN_NOTHINGTODO (see
34 // above).
32 // Comments: 35 // Comments:
33 // Currently, all failures return FLATTEN_FAIL, with no indication for the reason 36 // Currently, all failures return FLATTEN_FAIL, with no indication for
37 // the reason
34 // for the failure. 38 // for the failure.
35 DLLEXPORT int STDCALL FPDFPage_Flatten(FPDF_PAGE page, int nFlag); 39 DLLEXPORT int STDCALL FPDFPage_Flatten(FPDF_PAGE page, int nFlag);
36 40
37 #ifdef __cplusplus 41 #ifdef __cplusplus
38 } 42 }
39 #endif 43 #endif
40 44
41 #endif // PUBLIC_FPDF_FLATTEN_H_ 45 #endif // PUBLIC_FPDF_FLATTEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698