summaryrefslogtreecommitdiff
path: root/constants
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-05 21:18:16 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-05 21:18:16 +0000
commit28df406817f501b4c133d56ef09cb0d6d90181ca (patch)
treec1340d53bdcc5750d71f9664d2fe8a69b9773094 /constants
parentb20364c990152495dc259a4a8fc36cdd7dbd7ca4 (diff)
downloadpdfium-28df406817f501b4c133d56ef09cb0d6d90181ca.tar.xz
Add booleans for form flags in CPDF_FormField.
Add constants/form_flags.h as well. Change-Id: If15deff6bafdf394ed975b767128d65b5d2eb0e9 Reviewed-on: https://pdfium-review.googlesource.com/c/43533 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'constants')
-rw-r--r--constants/form_flags.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/constants/form_flags.h b/constants/form_flags.h
new file mode 100644
index 0000000000..a2220bd95c
--- /dev/null
+++ b/constants/form_flags.h
@@ -0,0 +1,20 @@
+// Copyright 2018 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONSTANTS_FORM_FLAGS_H_
+#define CONSTANTS_FORM_FLAGS_H_
+
+namespace pdfium {
+namespace form_flags {
+
+// PDF 1.7 spec, table 8.70.
+// Field flags common to all field types.
+constexpr uint32_t kReadOnly = 1 << 0;
+constexpr uint32_t kRequired = 1 << 1;
+constexpr uint32_t kNoExport = 1 << 2;
+
+} // namespace form_flags
+} // namespace pdfium
+
+#endif // CONSTANTS_FORM_FLAGS_H_