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

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

Issue 1092033004: Merge to XFA: Remove Release() combo patch. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: 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 | « fpdfsdk/include/formfiller/FFL_TextField.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_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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 FX_BYTE m_iHighlightAlpha; 326 FX_BYTE m_iHighlightAlpha;
327 FX_BOOL m_bNeedHightlight[7]; 327 FX_BOOL m_bNeedHightlight[7];
328 }; 328 };
329 329
330 #define BAI_STRUCTURE 0 330 #define BAI_STRUCTURE 0
331 #define BAI_ROW 1 331 #define BAI_ROW 1
332 #define BAI_COLUMN 2 332 #define BAI_COLUMN 2
333 333
334 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot* > 334 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot* >
335 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot* > 335 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot* >
336 class CBA_AnnotIterator 336 class CBA_AnnotIterator
337 { 337 {
338 public: 338 public:
339 CBA_AnnotIterator(CPDFSDK_PageView* pPageView, const CFX_ByteString& sTy pe, const CFX_ByteString& sSubType); 339 CBA_AnnotIterator(CPDFSDK_PageView* pPageView, const CFX_ByteString& sTy pe, const CFX_ByteString& sSubType);
340 » virtual ~CBA_AnnotIterator(); 340 » ~CBA_AnnotIterator();
341 » 341
342 » virtual CPDFSDK_Annot*» » » » GetFirstAnnot(); 342 » CPDFSDK_Annot*» » » » GetFirstAnnot();
343 » virtual CPDFSDK_Annot*» » » » GetLastAnnot(); 343 » CPDFSDK_Annot*» » » » GetLastAnnot();
344 » virtual CPDFSDK_Annot*» » » » GetNextAnnot(CPDFSDK_Ann ot* pAnnot); 344 » CPDFSDK_Annot*» » » » GetNextAnnot(CPDFSDK_Annot* pAnn ot);
345 » virtual CPDFSDK_Annot*» » » » GetPrevAnnot(CPDFSDK_Ann ot* pAnnot); 345 » CPDFSDK_Annot*» » » » GetPrevAnnot(CPDFSDK_Annot* pAnn ot);
346 » 346
347 » virtual void» » » » » » Release(){delete this;}
348 »
349 private: 347 private:
350 void Generate Results(); 348 void Generate Results();
351 static int CompareB yLeft(CPDFSDK_Annot* p1, CPDFSDK_Annot* p2); 349 static int CompareB yLeft(CPDFSDK_Annot* p1, CPDFSDK_Annot* p2);
352 static int CompareB yTop(CPDFSDK_Annot* p1, CPDFSDK_Annot* p2); 350 static int CompareB yTop(CPDFSDK_Annot* p1, CPDFSDK_Annot* p2);
353
354 static CPDF_Rect GetAnnotRect(CPD FSDK_Annot* pAnnot); 351 static CPDF_Rect GetAnnotRect(CPD FSDK_Annot* pAnnot);
355 » 352
356 private:
357 CPDFSDK_PageView* m_pPageView; 353 CPDFSDK_PageView* m_pPageView;
358 CFX_ByteString m_sType; 354 CFX_ByteString m_sType;
359 CFX_ByteString m_sSubType; 355 CFX_ByteString m_sSubType;
360 int m_nTabs; 356 int m_nTabs;
361
362 CPDFSDK_Annots m_Annots; 357 CPDFSDK_Annots m_Annots;
363 }; 358 };
364 359
365 #endif //#define _FSDK_BASEFORM_H_ 360 #endif //#define _FSDK_BASEFORM_H_
366 361
OLDNEW
« no previous file with comments | « fpdfsdk/include/formfiller/FFL_TextField.h ('k') | fpdfsdk/include/fxedit/fx_edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698