diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-03-23 09:17:10 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-23 13:50:52 +0000 |
commit | cdba747a53082a7f36534dffa6a3ad01628e53c3 (patch) | |
tree | 4df0b15de7600592588a263deb9a3adee617f417 /xfa/fxfa/xfa_ffdoc.h | |
parent | 1bbedec89cc59df3e305dc25082d9699237d70ab (diff) | |
download | pdfium-cdba747a53082a7f36534dffa6a3ad01628e53c3.tar.xz |
Cleanup DocType defines
This Cl synchronizes the DocType's defined in XFA with the DOCTYPE
flag used in public/. The internal XFA version is converted to an
enum class.
Change-Id: I1f7be71a200c1ec0f09f9b08099791da1f4fa2e4
Reviewed-on: https://pdfium-review.googlesource.com/3152
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/xfa_ffdoc.h')
-rw-r--r-- | xfa/fxfa/xfa_ffdoc.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fxfa/xfa_ffdoc.h b/xfa/fxfa/xfa_ffdoc.h index af2bf2c796..ee7695b15a 100644 --- a/xfa/fxfa/xfa_ffdoc.h +++ b/xfa/fxfa/xfa_ffdoc.h @@ -31,8 +31,7 @@ class CXFA_FFDoc { ~CXFA_FFDoc(); IXFA_DocEnvironment* GetDocEnvironment() const { return m_pDocEnvironment; } - uint32_t GetDocType(); - void SetDocType(uint32_t dwType); + XFA_DocType GetDocType() const { return m_dwDocType; } int32_t StartLoad(); int32_t DoLoad(IFX_Pause* pPause = nullptr); @@ -68,7 +67,7 @@ class CXFA_FFDoc { CPDF_Document* m_pPDFDoc; std::map<uint32_t, FX_IMAGEDIB_AND_DPI> m_HashToDibDpiMap; std::unique_ptr<CXFA_FFDocView> m_DocView; - uint32_t m_dwDocType; + XFA_DocType m_dwDocType; }; #endif // XFA_FXFA_XFA_FFDOC_H_ |