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

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

Issue 1539193003: Fix crashing in CPDFXFA_Document::GetPage() (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Rebase Created 4 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 | « fpdfsdk/include/fpdfxfa/fpdfxfa_page.h ('k') | fpdfsdk/src/fpdfxfa/fpdfxfa_doc.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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 bool IsValidAnnot(const CPDF_Annot* p) const; 628 bool IsValidAnnot(const CPDF_Annot* p) const;
629 void GetCurrentMatrix(CFX_Matrix& matrix) { matrix = m_curMatrix; } 629 void GetCurrentMatrix(CFX_Matrix& matrix) { matrix = m_curMatrix; }
630 void UpdateRects(CFX_RectArray& rects); 630 void UpdateRects(CFX_RectArray& rects);
631 void UpdateView(CPDFSDK_Annot* pAnnot); 631 void UpdateView(CPDFSDK_Annot* pAnnot);
632 const std::vector<CPDFSDK_Annot*>& GetAnnotList() const { 632 const std::vector<CPDFSDK_Annot*>& GetAnnotList() const {
633 return m_fxAnnotArray; 633 return m_fxAnnotArray;
634 } 634 }
635 635
636 int GetPageIndex(); 636 int GetPageIndex();
637 void LoadFXAnnots(); 637 void LoadFXAnnots();
638 void ClearFXAnnots();
638 void SetValid(FX_BOOL bValid) { m_bValid = bValid; } 639 void SetValid(FX_BOOL bValid) { m_bValid = bValid; }
639 FX_BOOL IsValid() { return m_bValid; } 640 FX_BOOL IsValid() { return m_bValid; }
640 void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; } 641 void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; }
641 FX_BOOL IsLocked() { return m_bLocked; } 642 FX_BOOL IsLocked() { return m_bLocked; }
642 #ifndef PDF_ENABLE_XFA 643 #ifndef PDF_ENABLE_XFA
643 void TakeOverPage() { m_bTakeOverPage = TRUE; } 644 void TakeOverPage() { m_bTakeOverPage = TRUE; }
644 #endif // PDF_ENABLE_XFA 645 #endif // PDF_ENABLE_XFA
645 646
646 private: 647 private:
647 void PageView_OnHighlightFormFields(CFX_RenderDevice* pDevice, 648 void PageView_OnHighlightFormFields(CFX_RenderDevice* pDevice,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 } 733 }
733 734
734 if (nStartPos < m) 735 if (nStartPos < m)
735 QuickSort(nStartPos, m, bAscend, pCompare); 736 QuickSort(nStartPos, m, bAscend, pCompare);
736 if (nStopPos > m) 737 if (nStopPos > m)
737 QuickSort(m, nStopPos, bAscend, pCompare); 738 QuickSort(m, nStopPos, bAscend, pCompare);
738 } 739 }
739 }; 740 };
740 741
741 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 742 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fpdfxfa/fpdfxfa_page.h ('k') | fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698