summaryrefslogtreecommitdiff
path: root/xfa/fxfa/include/fxfa_basic.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-06-20 11:11:12 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-20 11:11:12 -0700
commitc5a8f217fedc1224104b34f7577044776a9d83d8 (patch)
tree0b457b9ccc3511ad45f75fe0f385425af8d6272d /xfa/fxfa/include/fxfa_basic.h
parent950e68f14aa6db5022919c55ce80f346a94a762e (diff)
downloadpdfium-c5a8f217fedc1224104b34f7577044776a9d83d8.tar.xz
Split the XFA_OBJECTTYPE enum into two parts.
Currently the object type and the node flags are both mixed into the single XFA_OBJECTTYPE_* enum. These two things are un-related and should not share a single type. This Cl creates an XFA_ObjectType enum class and a XFA_NodeFlag enum to hold the two types. Accessors are added to determine if the flags are set (or called where they already existed. Review-Url: https://codereview.chromium.org/2083453003
Diffstat (limited to 'xfa/fxfa/include/fxfa_basic.h')
-rw-r--r--xfa/fxfa/include/fxfa_basic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xfa/fxfa/include/fxfa_basic.h b/xfa/fxfa/include/fxfa_basic.h
index fc5b931895..215b2e657a 100644
--- a/xfa/fxfa/include/fxfa_basic.h
+++ b/xfa/fxfa/include/fxfa_basic.h
@@ -11,6 +11,7 @@
#include "fxjse/include/fxjse.h"
class CXFA_Measurement;
+enum class XFA_ObjectType;
enum XFA_HashCode : uint32_t {
XFA_HASHCODE_None = 0,
@@ -932,7 +933,7 @@ struct XFA_ELEMENTINFO {
const FX_WCHAR* pName;
XFA_ELEMENT eName;
uint32_t dwPackets;
- uint32_t eObjectType;
+ XFA_ObjectType eObjectType;
};
const XFA_ELEMENTINFO* XFA_GetElementByName(const CFX_WideStringC& wsName);