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

Side by Side Diff: fpdfsdk/include/fsdk_annothandler.h

Issue 810883005: Fix -Wnon-virtual-dtor compiler warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Restore private destructors. Created 5 years, 11 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/fxcrt/fx_arabic.h ('k') | fpdfsdk/include/fxedit/fx_edit.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 _FSDK_ANNOTHANDLER_H_ 7 #ifndef _FSDK_ANNOTHANDLER_H_
8 #define _FSDK_ANNOTHANDLER_H_ 8 #define _FSDK_ANNOTHANDLER_H_
9 9
10 10
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 CFX_MapByteStringToPtr m_mapType2Handler; 210 CFX_MapByteStringToPtr m_mapType2Handler;
211 CPDFDoc_Environment* m_pApp; 211 CPDFDoc_Environment* m_pApp;
212 }; 212 };
213 213
214 //#define CBF_Page2Accessible CFX_MapPtrTemplate<CPDFSDK_PageView*, IAccessib le*> 214 //#define CBF_Page2Accessible CFX_MapPtrTemplate<CPDFSDK_PageView*, IAccessib le*>
215 215
216 typedef int (*AI_COMPARE) (CPDFSDK_Annot* p1, CPDFSDK_Annot* p2); 216 typedef int (*AI_COMPARE) (CPDFSDK_Annot* p1, CPDFSDK_Annot* p2);
217 217
218 class CPDFSDK_AnnotIterator 218 class CPDFSDK_AnnotIterator
219 { 219 {
220 protected:
221 CPDFSDK_Annot* NextAnnot (const CPDFSDK_Annot* pCurrent) ;
222 CPDFSDK_Annot* PrevAnnot (const CPDFSDK_Annot* pCurrent) ;
223 CPDFSDK_Annot* NextAnnot(int& index ) ;
224 CPDFSDK_Annot* PrevAnnot(int& index ) ;
225 public: 220 public:
226 CPDFSDK_AnnotIterator(CPDFSDK_PageView * pPageView, FX_BOOL bReverse, 221 CPDFSDK_AnnotIterator(CPDFSDK_PageView * pPageView, FX_BOOL bReverse,
227 » » FX_BOOL bIgnoreTopmost=FALSE,FX_BOOL bCircle=FALSE,CFX_PtrArray* pList=NULL);» 222 » » FX_BOOL bIgnoreTopmost=FALSE,FX_BOOL bCircle=FALSE,CFX_PtrArray* pList=NULL);
223 virtual ~CPDFSDK_AnnotIterator() { }
224
228 virtual CPDFSDK_Annot* Next (const CPDFSDK_Annot* pCurrent) ; 225 virtual CPDFSDK_Annot* Next (const CPDFSDK_Annot* pCurrent) ;
229 virtual CPDFSDK_Annot* Prev (const CPDFSDK_Annot* pCurrent) ; 226 virtual CPDFSDK_Annot* Prev (const CPDFSDK_Annot* pCurrent) ;
230 virtual CPDFSDK_Annot* Next(int& index ) ; 227 virtual CPDFSDK_Annot* Next(int& index ) ;
231 virtual CPDFSDK_Annot* Prev(int& index ) ; 228 virtual CPDFSDK_Annot* Prev(int& index ) ;
232 virtual int Count(){return m_pIteratorAnnotList.GetSize();} 229 virtual int Count(){return m_pIteratorAnnotList.GetSize();}
233 » 230
234 virtual FX_BOOL InitIteratorAnnotList(CPDFSDK_PageView * pPageVi ew,CFX_PtrArray* pList=NULL); 231 virtual FX_BOOL InitIteratorAnnotList(CPDFSDK_PageView * pPageVi ew,CFX_PtrArray* pList=NULL);
235 » 232
236 void InsertSort(CFX_PtrArray &arrayLi st, AI_COMPARE pCompare); 233 void InsertSort(CFX_PtrArray &arrayLi st, AI_COMPARE pCompare);
234
237 protected: 235 protected:
238 » //» CFX_PtrList» » » m_pIteratorAnnotList; 236 » CPDFSDK_Annot*» NextAnnot (const CPDFSDK_Annot* pCurrent) ;
239 » CFX_PtrArray» m_pIteratorAnnotList;» 237 » CPDFSDK_Annot*» PrevAnnot (const CPDFSDK_Annot* pCurrent) ;
238 » CPDFSDK_Annot*» NextAnnot(int& index ) ;
239 » CPDFSDK_Annot*» PrevAnnot(int& index ) ;
240
241 » CFX_PtrArray» m_pIteratorAnnotList;
240 FX_BOOL m_bReverse; 242 FX_BOOL m_bReverse;
241 FX_BOOL m_bIgnoreTopmost; 243 FX_BOOL m_bIgnoreTopmost;
242 FX_BOOL m_bCircle; 244 FX_BOOL m_bCircle;
243 }; 245 };
244 246
245 247
246 248
247 #endif 249 #endif
248 250
OLDNEW
« no previous file with comments | « core/src/fxcrt/fx_arabic.h ('k') | fpdfsdk/include/fxedit/fx_edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698