diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-05-08 13:40:20 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-08 13:40:20 +0000 |
commit | 967aa0793c0b0cf2722ec8720e9d797266a9fde7 (patch) | |
tree | 46c32ab1adcadd770261093d6bb57e2e1886bf32 /core/fpdfapi/parser/cpdf_data_avail.h | |
parent | e5c0fa97c2da104426dbc1cecfc0ed488a22efe5 (diff) | |
download | pdfium-967aa0793c0b0cf2722ec8720e9d797266a9fde7.tar.xz |
Rename CPDF_Document::GetPage() to GetPageDictionary().
Avoids a conflict should we wish to have the document actually
track pages, with a GetPage() that returns CPDF_Page.
Do the same thing to CPDF_DataAvail along the way.
Add some missing consts as well.
Change-Id: I2cb2213cc4c0649662fceab80407ee4a3f4cf30e
Reviewed-on: https://pdfium-review.googlesource.com/32158
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_data_avail.h')
-rw-r--r-- | core/fpdfapi/parser/cpdf_data_avail.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/parser/cpdf_data_avail.h b/core/fpdfapi/parser/cpdf_data_avail.h index dfb1f0cabf..2a0705d33d 100644 --- a/core/fpdfapi/parser/cpdf_data_avail.h +++ b/core/fpdfapi/parser/cpdf_data_avail.h @@ -102,7 +102,7 @@ class CPDF_DataAvail final { DocLinearizationStatus IsLinearizedPDF(); RetainPtr<IFX_SeekableReadStream> GetFileRead() const; int GetPageCount() const; - CPDF_Dictionary* GetPage(int index); + CPDF_Dictionary* GetPageDictionary(int index) const; RetainPtr<CPDF_ReadValidator> GetValidator() const; std::pair<CPDF_Parser::Error, std::unique_ptr<CPDF_Document>> ParseDocument( @@ -139,7 +139,7 @@ class CPDF_DataAvail final { std::unique_ptr<CPDF_Object> ParseIndirectObjectAt( FX_FILESIZE pos, uint32_t objnum, - CPDF_IndirectObjectHolder* pObjList = nullptr); + CPDF_IndirectObjectHolder* pObjList = nullptr) const; std::unique_ptr<CPDF_Object> GetObject(uint32_t objnum, bool* pExistInFile); bool GetPageKids(CPDF_Parser* pParser, CPDF_Object* pPages); @@ -161,7 +161,7 @@ class CPDF_DataAvail final { bool CheckPageCount(); bool IsFirstCheck(uint32_t dwPage); void ResetFirstCheck(uint32_t dwPage); - bool ValidatePage(uint32_t dwPage); + bool ValidatePage(uint32_t dwPage) const; CPDF_SyntaxParser* GetSyntaxParser() const; FileAvail* const m_pFileAvail; |