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

Side by Side Diff: core/src/fpdfdoc/tagged_int.h

Issue 370853002: pdfium: Fix all -Wdelete-non-virtual-dtor violations on Mac. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 6 years, 5 months 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
« no previous file with comments | « core/src/fpdfapi/fpdf_font/ttgsubtable.h ('k') | core/src/fxcrt/extension.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 _FPDF_TAGGED_INT_H_ 7 #ifndef _FPDF_TAGGED_INT_H_
8 #define _FPDF_TAGGED_INT_H_ 8 #define _FPDF_TAGGED_INT_H_
9 class CPDF_StructTreeImpl; 9 class CPDF_StructTreeImpl;
10 class CPDF_StructElementImpl; 10 class CPDF_StructElementImpl;
(...skipping 14 matching lines...) Expand all
25 void LoadPageTree(const CPDF_Dictionary* pPageDict); 25 void LoadPageTree(const CPDF_Dictionary* pPageDict);
26 CPDF_StructElementImpl* AddPageNode(CPDF_Dictionary* pElement, CFX_MapPtrToP tr& map, int nLevel = 0); 26 CPDF_StructElementImpl* AddPageNode(CPDF_Dictionary* pElement, CFX_MapPtrToP tr& map, int nLevel = 0);
27 FX_BOOL AddTopLevelNode(CPDF_Dictionary* pDict, CPDF_StructEleme ntImpl* pElement); 27 FX_BOOL AddTopLevelNode(CPDF_Dictionary* pDict, CPDF_StructEleme ntImpl* pElement);
28 protected: 28 protected:
29 const CPDF_Dictionary* m_pTreeRoot; 29 const CPDF_Dictionary* m_pTreeRoot;
30 const CPDF_Dictionary* m_pRoleMap; 30 const CPDF_Dictionary* m_pRoleMap;
31 const CPDF_Dictionary* m_pPage; 31 const CPDF_Dictionary* m_pPage;
32 CFX_ArrayTemplate<CPDF_StructElementImpl*> m_Kids; 32 CFX_ArrayTemplate<CPDF_StructElementImpl*> m_Kids;
33 friend class CPDF_StructElementImpl; 33 friend class CPDF_StructElementImpl;
34 }; 34 };
35 class CPDF_StructElementImpl : public CPDF_StructElement 35 class CPDF_StructElementImpl FX_FINAL : public CPDF_StructElement
36 { 36 {
37 public: 37 public:
38 CPDF_StructElementImpl(CPDF_StructTreeImpl* pTree, CPDF_StructElementImpl* p Parent, CPDF_Dictionary* pDict); 38 CPDF_StructElementImpl(CPDF_StructTreeImpl* pTree, CPDF_StructElementImpl* p Parent, CPDF_Dictionary* pDict);
39 ~CPDF_StructElementImpl(); 39 ~CPDF_StructElementImpl();
40 CPDF_StructTree* GetTree() const 40 CPDF_StructTree* GetTree() const
41 { 41 {
42 return m_pTree; 42 return m_pTree;
43 } 43 }
44 const CFX_ByteString& GetType() const 44 const CFX_ByteString& GetType() const
45 { 45 {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 CPDF_StructTreeImpl* m_pTree; 82 CPDF_StructTreeImpl* m_pTree;
83 CFX_ByteString m_Type; 83 CFX_ByteString m_Type;
84 CPDF_StructElementImpl* m_pParent; 84 CPDF_StructElementImpl* m_pParent;
85 CPDF_Dictionary* m_pDict; 85 CPDF_Dictionary* m_pDict;
86 CFX_ArrayTemplate<CPDF_StructKid> m_Kids; 86 CFX_ArrayTemplate<CPDF_StructKid> m_Kids;
87 87
88 int m_RefCount; 88 int m_RefCount;
89 friend class CPDF_StructTreeImpl; 89 friend class CPDF_StructTreeImpl;
90 }; 90 };
91 #endif 91 #endif
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_font/ttgsubtable.h ('k') | core/src/fxcrt/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698