diff options
author | dsinclair <dsinclair@chromium.org> | 2016-05-18 13:16:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-18 13:16:12 -0700 |
commit | cbfef5772c52fbd3378905a61fc9432da1515433 (patch) | |
tree | be4c25e41d2467609612232a92e598ccd9baa7eb /xfa/fxfa/include/fxfa_basic.h | |
parent | 1763f62972a3ebf080f645899a8de79b00dbfb23 (diff) | |
download | pdfium-cbfef5772c52fbd3378905a61fc9432da1515433.tar.xz |
Cleanup XFA_HASHCODE usage.
This CL cleans up several uses of XFA_HASHCODE. The defines have been converted
into an enum.
For the SavePackage call the type is now used as the param instead of a string.
The callers pass in the correct type instead of doing an internal conversion.
The GetXFAObject accepting a string was removed as it was unused. The other
variant was changed to accept the XFA_HashCode type instead of uint32_t.
GetPackageData was removed as it is unused.
Review-Url: https://codereview.chromium.org/1989313002
Diffstat (limited to 'xfa/fxfa/include/fxfa_basic.h')
-rw-r--r-- | xfa/fxfa/include/fxfa_basic.h | 60 |
1 files changed, 34 insertions, 26 deletions
diff --git a/xfa/fxfa/include/fxfa_basic.h b/xfa/fxfa/include/fxfa_basic.h index 30b7b6bdfe..f5f52c7a7f 100644 --- a/xfa/fxfa/include/fxfa_basic.h +++ b/xfa/fxfa/include/fxfa_basic.h @@ -11,32 +11,39 @@ #include "xfa/fxjse/include/fxjse.h" class CXFA_Measurement; -#define XFA_HASHCODE_Xfa 0xc56b9ff -#define XFA_HASHCODE_Config 0x4e1e39b6 -#define XFA_HASHCODE_Template 0x803550fc -#define XFA_HASHCODE_Datasets 0x99b95079 -#define XFA_HASHCODE_Data 0xbde9abda -#define XFA_HASHCODE_Form 0xcd309ff4 -#define XFA_HASHCODE_LocaleSet 0x5473b6dc -#define XFA_HASHCODE_ConnectionSet 0xe14c801c -#define XFA_HASHCODE_SourceSet 0x811929d -#define XFA_HASHCODE_Xdc 0xc56afbf -#define XFA_HASHCODE_Pdf 0xb843dba -#define XFA_HASHCODE_Xfdf 0x48d004a8 -#define XFA_HASHCODE_Xmpmeta 0x132a8fbc -#define XFA_HASHCODE_Signature 0x8b036f32 -#define XFA_HASHCODE_Stylesheet 0x6038580a -#define XFA_HASHCODE_XDP 0xc56afcc -#define XFA_HASHCODE_Record 0x5779d65f -#define XFA_HASHCODE_DataWindow 0x83a550d2 -#define XFA_HASHCODE_Host 0xdb075bde -#define XFA_HASHCODE_Log 0x0b1b3d22 -#define XFA_HASHCODE_Event 0x185e41e2 -#define XFA_HASHCODE_Layout 0x7e7e845e -#define XFA_HASHCODE_Occur 0xf7eebe1c -#define XFA_HASHCODE_This 0x2d574d58 -#define XFA_HASHCODE_DataDescription 0x2b5df51e -#define XFA_HASHCODE_Name 0x31b19c1 + +enum XFA_HashCode : uint32_t { + XFA_HASHCODE_None = 0, + + XFA_HASHCODE_Config = 0x4e1e39b6, + XFA_HASHCODE_ConnectionSet = 0xe14c801c, + XFA_HASHCODE_Data = 0xbde9abda, + XFA_HASHCODE_DataDescription = 0x2b5df51e, + XFA_HASHCODE_Datasets = 0x99b95079, + XFA_HASHCODE_DataWindow = 0x83a550d2, + XFA_HASHCODE_Event = 0x185e41e2, + XFA_HASHCODE_Form = 0xcd309ff4, + XFA_HASHCODE_Group = 0xf7f75fcd, + XFA_HASHCODE_Host = 0xdb075bde, + XFA_HASHCODE_Layout = 0x7e7e845e, + XFA_HASHCODE_LocaleSet = 0x5473b6dc, + XFA_HASHCODE_Log = 0x0b1b3d22, + XFA_HASHCODE_Name = 0x31b19c1, + XFA_HASHCODE_Occur = 0xf7eebe1c, + XFA_HASHCODE_Pdf = 0xb843dba, + XFA_HASHCODE_Record = 0x5779d65f, + XFA_HASHCODE_Signature = 0x8b036f32, + XFA_HASHCODE_SourceSet = 0x811929d, + XFA_HASHCODE_Stylesheet = 0x6038580a, + XFA_HASHCODE_Template = 0x803550fc, + XFA_HASHCODE_This = 0x2d574d58, + XFA_HASHCODE_Xdc = 0xc56afbf, + XFA_HASHCODE_XDP = 0xc56afcc, + XFA_HASHCODE_Xfa = 0xc56b9ff, + XFA_HASHCODE_Xfdf = 0x48d004a8, + XFA_HASHCODE_Xmpmeta = 0x132a8fbc +}; + enum XFA_PACKET { XFA_PACKET_USER, XFA_PACKET_SourceSet, @@ -54,6 +61,7 @@ enum XFA_PACKET { XFA_PACKET_Form, XFA_PACKET_ConnectionSet, }; + enum XFA_XDPPACKET { XFA_XDPPACKET_UNKNOWN = 0, XFA_XDPPACKET_Config = 1 << XFA_PACKET_Config, |