diff options
author | Ryan Harrison <rharrison@chromium.org> | 2017-10-21 02:07:02 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-21 06:17:49 +0000 |
commit | 0e568818249ff83d239b98cbb32dec94358da0c7 (patch) | |
tree | bf2c19c415749f405755c7c7dc16b04fbca5ad2c | |
parent | d78ef3b7c9435f5e066da970da7f28b598b07866 (diff) | |
download | pdfium-0e568818249ff83d239b98cbb32dec94358da0c7.tar.xz |
Add in count value for form typeschromium/3247
BUG=chromium:775519,chromium:768986
Adding metric form types
Change-Id: Ic99a5ac988998986f06cb79d08458afeda49a5d1
Reviewed-on: https://pdfium-review.googlesource.com/16392
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
-rw-r--r-- | public/fpdf_formfill.h | 3 | ||||
-rw-r--r-- | xfa/fxfa/fxfa.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h index 0204c846d3..5bc3cf3a6d 100644 --- a/public/fpdf_formfill.h +++ b/public/fpdf_formfill.h @@ -12,11 +12,14 @@ typedef void* FPDF_FORMHANDLE; +// These values are return values for a public API, so should not be changed +// other than the count when adding new values. #define FORMTYPE_NONE 0 // Document contains no forms #define FORMTYPE_ACRO_FORM 1 // Forms are specified using AcroForm spec #define FORMTYPE_XFA_FULL 2 // Forms are specified using the entire XFA spec #define FORMTYPE_XFA_FOREGROUND \ 3 // Forms are specified using the XFAF subset of XFA spec +#define FORMTYPE_COUNT 4 // The number of form types // Exported Functions #ifdef __cplusplus diff --git a/xfa/fxfa/fxfa.h b/xfa/fxfa/fxfa.h index ee74fc14dd..bb6864a6a4 100644 --- a/xfa/fxfa/fxfa.h +++ b/xfa/fxfa/fxfa.h @@ -45,7 +45,7 @@ enum class FormType { kNone = 0, kAcroForm = 1, kXFAFull = 2, - kXFAForeground = 3 + kXFAForeground = 3, }; #define XFA_PARSESTATUS_StatusErr -3 |