summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-10-16 10:57:48 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-16 16:12:40 +0000
commita74a6277a0913a674719da3134efd877a5e8d091 (patch)
treecc002c804c2a540759fe0e549a95b211f142af61 /public
parent5d98f3044ed5fd3e41d1e764351a8829e1a47e4b (diff)
downloadpdfium-a74a6277a0913a674719da3134efd877a5e8d091.tar.xz
Move HasXFAField out from XFA feature flag
Moves the PDFium API method FPDF_HasXFAField out from behind the XFA feature flag so that XFA metrics can be generated without enabling the entire feature. Changes some of the constant names to be more accurate. BUG=pdfium:917 Change-Id: I6d8fe9fd88d392d028de2504d39d978de4a1d5b7 Reviewed-on: https://pdfium-review.googlesource.com/15990 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'public')
-rw-r--r--public/fpdf_formfill.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h
index bf385b3539..e4194fed8e 100644
--- a/public/fpdf_formfill.h
+++ b/public/fpdf_formfill.h
@@ -12,11 +12,9 @@
typedef void* FPDF_FORMHANDLE;
-#ifdef PDF_ENABLE_XFA
#define DOCTYPE_PDF 0 // Normal pdf Document
-#define DOCTYPE_DYNAMIC_XFA 1 // Dynamic xfa Document Type
-#define DOCTYPE_STATIC_XFA 2 // Static xfa Document Type
-#endif // PDF_ENABLE_XFA
+#define DOCTYPE_DYNAMIC_XFA 1 // Dynamic XFA Document Type
+#define DOCTYPE_STATIC_XFA 2 // Static XFA Document Type
// Exported Functions
#ifdef __cplusplus
@@ -1607,7 +1605,6 @@ FPDF_EXPORT void FPDF_CALLCONV FPDF_FFLRecord(FPDF_FORMHANDLE hHandle,
int flags);
#endif
-#ifdef PDF_ENABLE_XFA
/**
* Function: FPDF_HasXFAField
* This method is designed to check whether a pdf document
@@ -1624,6 +1621,7 @@ FPDF_EXPORT void FPDF_CALLCONV FPDF_FFLRecord(FPDF_FORMHANDLE hHandle,
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_HasXFAField(FPDF_DOCUMENT document,
int* docType);
+#ifdef PDF_ENABLE_XFA
/**
* Function: FPDF_LoadXFA
* If the document consists of XFA fields, there should call this