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

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

Issue 1097843003: Remove release method from CBA_AnnotItetator. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Untabify. Created 5 years, 8 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 | « no previous file | fpdfsdk/src/fsdk_baseform.cpp » ('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_BASEFORM_H_ 7 #ifndef _FSDK_BASEFORM_H_
8 #define _FSDK_BASEFORM_H_ 8 #define _FSDK_BASEFORM_H_
9 9
10 #if _FX_OS_ == _FX_ANDROID_ 10 #if _FX_OS_ == _FX_ANDROID_
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 FX_BYTE m_iHighlightAlpha; 254 FX_BYTE m_iHighlightAlpha;
255 FX_BOOL m_bNeedHightlight[6]; 255 FX_BOOL m_bNeedHightlight[6];
256 }; 256 };
257 257
258 #define BAI_STRUCTURE 0 258 #define BAI_STRUCTURE 0
259 #define BAI_ROW 1 259 #define BAI_ROW 1
260 #define BAI_COLUMN 2 260 #define BAI_COLUMN 2
261 261
262 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot* > 262 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot* >
263 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot* > 263 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot* >
264 class CBA_AnnotIterator 264 class CBA_AnnotIterator
265 { 265 {
266 public: 266 public:
267 CBA_AnnotIterator(CPDFSDK_PageView* pPageView, const CFX_ByteString& sTy pe, const CFX_ByteString& sSubType); 267 CBA_AnnotIterator(CPDFSDK_PageView* pPageView, const CFX_ByteString& sTy pe, const CFX_ByteString& sSubType);
268 » virtual ~CBA_AnnotIterator(); 268 » ~CBA_AnnotIterator();
269 » 269
270 » virtual CPDFSDK_Annot*» » » » GetFirstAnnot(); 270 » CPDFSDK_Annot*» » » » GetFirstAnnot();
271 » virtual CPDFSDK_Annot*» » » » GetLastAnnot(); 271 » CPDFSDK_Annot*» » » » GetLastAnnot();
272 » virtual CPDFSDK_Annot*» » » » GetNextAnnot(CPDFSDK_Ann ot* pAnnot); 272 » CPDFSDK_Annot*» » » » GetNextAnnot(CPDFSDK_Annot* pAnn ot);
273 » virtual CPDFSDK_Annot*» » » » GetPrevAnnot(CPDFSDK_Ann ot* pAnnot); 273 » CPDFSDK_Annot*» » » » GetPrevAnnot(CPDFSDK_Annot* pAnn ot);
274 » 274
275 » virtual void» » » » » » Release(){delete this;}
276 »
277 private: 275 private:
278 void Generate Results(); 276 void Generate Results();
279 static int CompareB yLeft(CPDFSDK_Annot* p1, CPDFSDK_Annot* p2); 277 static int CompareB yLeft(CPDFSDK_Annot* p1, CPDFSDK_Annot* p2);
280 static int CompareB yTop(CPDFSDK_Annot* p1, CPDFSDK_Annot* p2); 278 static int CompareB yTop(CPDFSDK_Annot* p1, CPDFSDK_Annot* p2);
281
282 static CPDF_Rect GetAnnotRect(CPD FSDK_Annot* pAnnot); 279 static CPDF_Rect GetAnnotRect(CPD FSDK_Annot* pAnnot);
283 » 280
284 private:
285 CPDFSDK_PageView* m_pPageView; 281 CPDFSDK_PageView* m_pPageView;
286 CFX_ByteString m_sType; 282 CFX_ByteString m_sType;
287 CFX_ByteString m_sSubType; 283 CFX_ByteString m_sSubType;
288 int m_nTabs; 284 int m_nTabs;
289
290 CPDFSDK_Annots m_Annots; 285 CPDFSDK_Annots m_Annots;
291 }; 286 };
292 287
293 #endif //#define _FSDK_BASEFORM_H_ 288 #endif //#define _FSDK_BASEFORM_H_
294 289
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/src/fsdk_baseform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698