From 854d71c1420eb80ec79755a6cdf829f3f39aead7 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 18 Oct 2017 12:28:14 -0400 Subject: Refactor HasXFAField into HasFormInfo The existing API is too restrictive for collection the metrics information that we want. Specifically it only tells us if there are XFA forms in the document, but not AcroForms. This refactoring makes the method more general, so that non-XFA information is provided also. This change in semantics of the return value required some changes at the call sites of the API. BUG=chromium:775519 Change-Id: Id421c66c09b47196c252c64cdc2c711ca1911de0 Reviewed-on: https://pdfium-review.googlesource.com/16210 Commit-Queue: Ryan Harrison Reviewed-by: Henrique Nakashima Reviewed-by: dsinclair --- xfa/fxfa/cxfa_ffdoc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xfa/fxfa/cxfa_ffdoc.h') diff --git a/xfa/fxfa/cxfa_ffdoc.h b/xfa/fxfa/cxfa_ffdoc.h index c85c951e04..490b023f0d 100644 --- a/xfa/fxfa/cxfa_ffdoc.h +++ b/xfa/fxfa/cxfa_ffdoc.h @@ -54,7 +54,7 @@ class CXFA_FFDoc { IXFA_DocEnvironment* GetDocEnvironment() const { return m_pDocEnvironment.Get(); } - XFA_DocType GetDocType() const { return m_dwDocType; } + FormType GetFormType() const { return m_FormType; } int32_t StartLoad(); int32_t DoLoad(); @@ -91,7 +91,7 @@ class CXFA_FFDoc { std::map m_HashToDibDpiMap; std::unique_ptr m_DocView; std::unique_ptr m_pPDFFontMgr; - XFA_DocType m_dwDocType; + FormType m_FormType; }; #endif // XFA_FXFA_CXFA_FFDOC_H_ -- cgit v1.2.3