Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Side by Side Diff: core/include/fpdfdoc/fpdf_doc.h

Issue 1520643002: Replace several more CFX_MapPtrToPtr with std::set or std::map (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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_INCLUDE_FPDFDOC_FPDF_DOC_H_ 7 #ifndef CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 void ClearCachedAP(); 414 void ClearCachedAP();
415 415
416 void DrawBorder(CFX_RenderDevice* pDevice, 416 void DrawBorder(CFX_RenderDevice* pDevice,
417 const CFX_AffineMatrix* pUser2Device, 417 const CFX_AffineMatrix* pUser2Device,
418 const CPDF_RenderOptions* pOptions); 418 const CPDF_RenderOptions* pOptions);
419 419
420 CPDF_Form* GetAPForm(const CPDF_Page* pPage, AppearanceMode mode); 420 CPDF_Form* GetAPForm(const CPDF_Page* pPage, AppearanceMode mode);
421 421
422 private: 422 private:
423 CPDF_Dictionary* const m_pAnnotDict; 423 CPDF_Dictionary* const m_pAnnotDict;
424
425 CPDF_AnnotList* const m_pList; 424 CPDF_AnnotList* const m_pList;
426
427 const CFX_ByteString m_sSubtype; 425 const CFX_ByteString m_sSubtype;
428 426 std::map<CPDF_Stream*, CPDF_Form*> m_APMap;
429 CFX_MapPtrToPtr m_APMap;
430 }; 427 };
431 428
432 class CPDF_AnnotList { 429 class CPDF_AnnotList {
433 public: 430 public:
434 explicit CPDF_AnnotList(CPDF_Page* pPage); 431 explicit CPDF_AnnotList(CPDF_Page* pPage);
435 ~CPDF_AnnotList(); 432 ~CPDF_AnnotList();
436 433
437 void DisplayAnnots(const CPDF_Page* pPage, 434 void DisplayAnnots(const CPDF_Page* pPage,
438 CPDF_RenderContext* pContext, 435 CPDF_RenderContext* pContext,
439 FX_BOOL bPrinting, 436 FX_BOOL bPrinting,
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; 1146 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const;
1150 1147
1151 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; 1148 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const;
1152 1149
1153 CPDF_Dictionary* const m_pDict; 1150 CPDF_Dictionary* const m_pDict;
1154 }; 1151 };
1155 1152
1156 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); 1153 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath);
1157 1154
1158 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 1155 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698