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

Side by Side Diff: public/fpdf_dataavail.h

Issue 1465723002: Make XFA public more closely match master. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: spacing Created 5 years, 1 month 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 | « no previous file | public/fpdf_doc.h » ('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 #ifndef PUBLIC_FPDF_DATAAVAIL_H_ 7 #ifndef PUBLIC_FPDF_DATAAVAIL_H_
8 #define PUBLIC_FPDF_DATAAVAIL_H_ 8 #define PUBLIC_FPDF_DATAAVAIL_H_
9 9
10 #include <stddef.h> // For size_t. 10 #include <stddef.h> // For size_t.
11 11
12 #include "fpdfview.h" 12 #include "fpdfview.h"
13 13
14 #define PDF_LINEARIZATION_UNKNOWN -1 14 #define PDF_LINEARIZATION_UNKNOWN -1
15 #define PDF_NOT_LINEARIZED 0 15 #define PDF_NOT_LINEARIZED 0
16 #define PDF_LINEARIZED 1 16 #define PDF_LINEARIZED 1
17
17 #define PDF_DATA_ERROR -1 18 #define PDF_DATA_ERROR -1
18 #define PDF_DATA_NOTAVAIL 0 19 #define PDF_DATA_NOTAVAIL 0
19 #define PDF_DATA_AVAIL 1 20 #define PDF_DATA_AVAIL 1
21
20 #define PDF_FORM_ERROR -1 22 #define PDF_FORM_ERROR -1
21 #define PDF_FORM_NOTAVAIL 0 23 #define PDF_FORM_NOTAVAIL 0
22 #define PDF_FORM_AVAIL 1 24 #define PDF_FORM_AVAIL 1
23 #define PDF_FORM_NOTEXIST 2 25 #define PDF_FORM_NOTEXIST 2
24 26
25 #ifdef __cplusplus 27 #ifdef __cplusplus
26 extern "C" { 28 extern "C" {
27 #endif 29 #endif
28 30
29 /** 31 /**
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 * Parameters: 67 * Parameters:
66 * file_avail - Pointer to file availability interface to check 68 * file_avail - Pointer to file availability interface to check
67 * availability of file data. 69 * availability of file data.
68 * file - Pointer to a file access interface for reading data 70 * file - Pointer to a file access interface for reading data
69 * from file. 71 * from file.
70 * Return value: 72 * Return value:
71 * A handle to the document availability provider. NULL for error. 73 * A handle to the document availability provider. NULL for error.
72 * Comments: 74 * Comments:
73 * Application must call FPDFAvail_Destroy when done with the 75 * Application must call FPDFAvail_Destroy when done with the
74 * availability provider. 76 * availability provider.
75 * Notes:
76 * The method can not support to load a document which consists of
77 * dynamic XFA fields now.
78 */ 77 */
79 DLLEXPORT FPDF_AVAIL STDCALL FPDFAvail_Create(FX_FILEAVAIL* file_avail, 78 DLLEXPORT FPDF_AVAIL STDCALL FPDFAvail_Create(FX_FILEAVAIL* file_avail,
80 FPDF_FILEACCESS* file); 79 FPDF_FILEACCESS* file);
81 80
82 /** 81 /**
83 * Function: FPDFAvail_Destroy 82 * Function: FPDFAvail_Destroy
84 * Destroy a document availibity provider. 83 * Destroy a document availibity provider.
85 * 84 *
86 * Parameters: 85 * Parameters:
87 * avail - Handle to document availability provider returned by 86 * avail - Handle to document availability provider returned by
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 * tell whether a PDF file is a linearized file or not. 264 * tell whether a PDF file is a linearized file or not.
266 * 265 *
267 */ 266 */
268 DLLEXPORT int STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail); 267 DLLEXPORT int STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail);
269 268
270 #ifdef __cplusplus 269 #ifdef __cplusplus
271 } 270 }
272 #endif 271 #endif
273 272
274 #endif // PUBLIC_FPDF_DATAAVAIL_H_ 273 #endif // PUBLIC_FPDF_DATAAVAIL_H_
OLDNEW
« no previous file with comments | « no previous file | public/fpdf_doc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698