Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ | 7 #ifndef CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ |
| 8 #define CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ | 8 #define CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ |
| 9 | 9 |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 CPDF_Font* AddFont(CFX_Font* pFont, int charset, FX_BOOL bVert); | 95 CPDF_Font* AddFont(CFX_Font* pFont, int charset, FX_BOOL bVert); |
| 96 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 96 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
| 97 CPDF_Font* AddWindowsFont(LOGFONTA* pLogFont, | 97 CPDF_Font* AddWindowsFont(LOGFONTA* pLogFont, |
| 98 FX_BOOL bVert, | 98 FX_BOOL bVert, |
| 99 FX_BOOL bTranslateName = FALSE); | 99 FX_BOOL bTranslateName = FALSE); |
| 100 CPDF_Font* AddWindowsFont(LOGFONTW* pLogFont, | 100 CPDF_Font* AddWindowsFont(LOGFONTW* pLogFont, |
| 101 FX_BOOL bVert, | 101 FX_BOOL bVert, |
| 102 FX_BOOL bTranslateName = FALSE); | 102 FX_BOOL bTranslateName = FALSE); |
| 103 #endif | 103 #endif |
| 104 | 104 |
| 105 private: | 105 private: |
|
Tom Sepez
2016/10/21 21:33:38
maybe this just becomes protected:, as we have sub
npm
2016/10/21 21:46:00
protected and no friends is preferred then?
Tom Sepez
2016/10/21 21:48:33
either way.
npm
2016/10/21 22:12:03
Done.
| |
| 106 friend class CPDF_TestDocument; | 106 friend class CPDF_TestDocument; |
| 107 friend class CPDF_DocumentTest; | |
|
Tom Sepez
2016/10/21 21:31:40
nit: can we call this class CPDF_TestDocumentForPa
npm
2016/10/21 22:12:03
Done.
| |
| 107 | 108 |
| 108 // Retrieve page count information by getting count value from the tree nodes | 109 // Retrieve page count information by getting count value from the tree nodes |
| 109 int RetrievePageCount() const; | 110 int RetrievePageCount() const; |
| 110 CPDF_Dictionary* FindPDFPage(CPDF_Dictionary* pPages, | 111 CPDF_Dictionary* FindPDFPage(CPDF_Dictionary* pPages, |
| 111 int iPage, | 112 int iPage, |
| 112 int nPagesToGo, | 113 int nPagesToGo, |
| 113 int level); | 114 int level); |
| 114 int FindPageIndex(CPDF_Dictionary* pNode, | 115 int FindPageIndex(CPDF_Dictionary* pNode, |
| 115 uint32_t& skip_count, | 116 uint32_t& skip_count, |
| 116 uint32_t objnum, | 117 uint32_t objnum, |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 136 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. | 137 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. |
| 137 CPDF_DocPageData* m_pDocPage; | 138 CPDF_DocPageData* m_pDocPage; |
| 138 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; | 139 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; |
| 139 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; | 140 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; |
| 140 std::unique_ptr<CPDF_LinkList> m_pLinksContext; | 141 std::unique_ptr<CPDF_LinkList> m_pLinksContext; |
| 141 CFX_ArrayTemplate<uint32_t> m_PageList; | 142 CFX_ArrayTemplate<uint32_t> m_PageList; |
| 142 CFX_WeakPtr<CFX_ByteStringPool> m_pByteStringPool; | 143 CFX_WeakPtr<CFX_ByteStringPool> m_pByteStringPool; |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 #endif // CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ | 146 #endif // CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ |
| OLD | NEW |