From 01b67ed9b441cd485997bc08482def1f2ab265db Mon Sep 17 00:00:00 2001 From: npm Date: Mon, 12 Sep 2016 13:38:52 -0700 Subject: Refactor CPDF_Document by creating new methods - Methods GetPagesDict, ProcessNonbCJK, CalculateFlags, and CalculateEncodingDict created to reduce duplicated code. - Code nits Review-Url: https://codereview.chromium.org/2323793003 --- core/fpdfapi/fpdf_parser/include/cpdf_document.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fpdfapi/fpdf_parser/include/cpdf_document.h') diff --git a/core/fpdfapi/fpdf_parser/include/cpdf_document.h b/core/fpdfapi/fpdf_parser/include/cpdf_document.h index 2d315e9d5b..494868ef13 100644 --- a/core/fpdfapi/fpdf_parser/include/cpdf_document.h +++ b/core/fpdfapi/fpdf_parser/include/cpdf_document.h @@ -60,8 +60,6 @@ class CPDF_Document : public CPDF_IndirectObjectHolder { CPDF_DocRenderData* GetRenderData() const { return m_pDocRender.get(); } - FX_BOOL IsFormStream(uint32_t objnum, FX_BOOL& bForm) const; - // |pFontDict| must not be null. CPDF_Font* LoadFont(CPDF_Dictionary* pFontDict); CPDF_ColorSpace* LoadColorSpace(CPDF_Object* pCSObj, @@ -128,6 +126,8 @@ class CPDF_Document : public CPDF_IndirectObjectHolder { private: void LoadDocInternal(); + size_t CalculateEncodingDict(int charset, CPDF_Dictionary* pBaseDict); + CPDF_Dictionary* GetPagesDict() const; }; #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ -- cgit v1.2.3