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_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ |
| 8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ | 8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
|
Tom Sepez
2016/09/16 19:49:07
nit: #include <functional>
| |
| 11 | 11 |
| 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h" | 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h" |
| 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_object.h" | 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_object.h" |
| 14 #include "core/fpdfdoc/include/cpdf_linklist.h" | 14 #include "core/fpdfdoc/include/cpdf_linklist.h" |
| 15 #include "core/fxcrt/include/fx_basic.h" | 15 #include "core/fxcrt/include/fx_basic.h" |
| 16 | 16 |
| 17 class CFX_Font; | 17 class CFX_Font; |
| 18 class CFX_Matrix; | 18 class CFX_Matrix; |
| 19 class CPDF_ColorSpace; | 19 class CPDF_ColorSpace; |
| 20 class CPDF_DocPageData; | 20 class CPDF_DocPageData; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. | 121 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. |
| 122 CPDF_DocPageData* m_pDocPage; | 122 CPDF_DocPageData* m_pDocPage; |
| 123 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; | 123 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; |
| 124 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; | 124 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; |
| 125 std::unique_ptr<CPDF_LinkList> m_pLinksContext; | 125 std::unique_ptr<CPDF_LinkList> m_pLinksContext; |
| 126 | 126 |
| 127 private: | 127 private: |
| 128 void LoadDocInternal(); | 128 void LoadDocInternal(); |
| 129 size_t CalculateEncodingDict(int charset, CPDF_Dictionary* pBaseDict); | 129 size_t CalculateEncodingDict(int charset, CPDF_Dictionary* pBaseDict); |
| 130 CPDF_Dictionary* GetPagesDict() const; | 130 CPDF_Dictionary* GetPagesDict() const; |
| 131 CPDF_Dictionary* ProcessbCJK( | |
| 132 CPDF_Dictionary* pBaseDict, | |
| 133 int charset, | |
| 134 FX_BOOL bVert, | |
| 135 CFX_ByteString basefont, | |
| 136 std::function<void(FX_WCHAR, FX_WCHAR, CPDF_Array*)> Insert); | |
| 131 }; | 137 }; |
| 132 | 138 |
| 133 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ | 139 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ |
| OLD | NEW |