summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_parser/include
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-09-12 13:38:52 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-12 13:38:52 -0700
commit01b67ed9b441cd485997bc08482def1f2ab265db (patch)
treeba045b2659de3d41a1fedf285a4a49bc5134b435 /core/fpdfapi/fpdf_parser/include
parent56cf519689846dd03a381fb6c4e7a054effdd20b (diff)
downloadpdfium-01b67ed9b441cd485997bc08482def1f2ab265db.tar.xz
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
Diffstat (limited to 'core/fpdfapi/fpdf_parser/include')
-rw-r--r--core/fpdfapi/fpdf_parser/include/cpdf_document.h4
1 files changed, 2 insertions, 2 deletions
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_