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

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

Issue 1422503012: Merge to XFA: Fix incorrect CPDFSDK_PageView::CountAnnots(). (try 2) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: nit Created 5 years, 1 month 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 FPDFSDK_INCLUDE_FSDK_MGR_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_
8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 return m_pSDKDoc->KillFocusAnnot(nFlag); 550 return m_pSDKDoc->KillFocusAnnot(nFlag);
551 } 551 }
552 void KillFocusAnnotIfNeeded(); 552 void KillFocusAnnotIfNeeded();
553 FX_BOOL Annot_HasAppearance(CPDF_Annot* pAnnot); 553 FX_BOOL Annot_HasAppearance(CPDF_Annot* pAnnot);
554 554
555 CPDFSDK_Annot* AddAnnot(CPDF_Dictionary* pDict); 555 CPDFSDK_Annot* AddAnnot(CPDF_Dictionary* pDict);
556 CPDFSDK_Annot* AddAnnot(const FX_CHAR* lpSubType, CPDF_Dictionary* pDict); 556 CPDFSDK_Annot* AddAnnot(const FX_CHAR* lpSubType, CPDF_Dictionary* pDict);
557 CPDFSDK_Annot* AddAnnot(CPDF_Annot* pPDFAnnot); 557 CPDFSDK_Annot* AddAnnot(CPDF_Annot* pPDFAnnot);
558 CPDFSDK_Annot* AddAnnot(IXFA_Widget* pPDFAnnot); 558 CPDFSDK_Annot* AddAnnot(IXFA_Widget* pPDFAnnot);
559 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot); 559 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot);
560 int CountAnnots() const; 560 size_t CountAnnots() const;
561 CPDFSDK_Annot* GetAnnot(size_t nIndex); 561 CPDFSDK_Annot* GetAnnot(size_t nIndex);
562 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict); 562 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict);
563 CPDFSDK_Annot* GetAnnotByXFAWidget(IXFA_Widget* hWidget); 563 CPDFSDK_Annot* GetAnnotByXFAWidget(IXFA_Widget* hWidget);
564 CPDFXFA_Page* GetPDFXFAPage() { return m_page; } 564 CPDFXFA_Page* GetPDFXFAPage() { return m_page; }
565 CPDF_Page* GetPDFPage(); 565 CPDF_Page* GetPDFPage();
566 CPDF_Document* GetPDFDocument(); 566 CPDF_Document* GetPDFDocument();
567 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; } 567 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; }
568 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_UINT nFlag); 568 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_UINT nFlag);
569 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_UINT nFlag); 569 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_UINT nFlag);
570 FX_BOOL OnRButtonDown(const CPDF_Point& point, FX_UINT nFlag); 570 FX_BOOL OnRButtonDown(const CPDF_Point& point, FX_UINT nFlag);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 } 677 }
678 678
679 if (nStartPos < m) 679 if (nStartPos < m)
680 QuickSort(nStartPos, m, bAscend, pCompare); 680 QuickSort(nStartPos, m, bAscend, pCompare);
681 if (nStopPos > m) 681 if (nStopPos > m)
682 QuickSort(m, nStopPos, bAscend, pCompare); 682 QuickSort(m, nStopPos, bAscend, pCompare);
683 } 683 }
684 }; 684 };
685 685
686 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 686 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
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