| Index: fpdfsdk/include/fsdk_mgr.h
|
| diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h
|
| index 5ddc8e6c57c3268ee8f6e8b852b84669d97c77e3..3d56b19dd5bffab66a85b7197766b28cd7f68846 100644
|
| --- a/fpdfsdk/include/fsdk_mgr.h
|
| +++ b/fpdfsdk/include/fsdk_mgr.h
|
| @@ -12,6 +12,7 @@
|
| #include "../../core/include/fpdftext/fpdf_text.h"
|
| #include "../../public/fpdf_formfill.h"
|
| #include "../../public/fpdf_fwlevent.h" // cross platform keycode and events define.
|
| +#include "../../third_party/base/nonstd_unique_ptr.h"
|
| #include "fsdk_common.h"
|
| #include "fsdk_define.h"
|
| #include "fx_systemhandler.h"
|
| @@ -300,7 +301,7 @@ class CPDFSDK_PageView final {
|
| CPDFSDK_Annot* AddAnnot(const FX_CHAR* lpSubType, CPDF_Dictionary* pDict);
|
| CPDFSDK_Annot* AddAnnot(CPDF_Annot* pPDFAnnot);
|
| FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot);
|
| - int CountAnnots();
|
| + int CountAnnots() const;
|
| CPDFSDK_Annot* GetAnnot(int nIndex);
|
| CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict);
|
| CPDF_Page* GetPDFPage() { return m_page; }
|
| @@ -317,7 +318,7 @@ class CPDFSDK_PageView final {
|
| double deltaY,
|
| const CPDF_Point& point,
|
| int nFlag);
|
| - FX_BOOL IsValidAnnot(void* p);
|
| + FX_BOOL IsValidAnnot(void* p) const;
|
| void GetCurrentMatrix(CPDF_Matrix& matrix) { matrix = m_curMatrix; }
|
| void UpdateRects(CFX_RectArray& rects);
|
| void UpdateView(CPDFSDK_Annot* pAnnot);
|
| @@ -334,10 +335,10 @@ class CPDFSDK_PageView final {
|
| private:
|
| void PageView_OnHighlightFormFields(CFX_RenderDevice* pDevice,
|
| CPDFSDK_Widget* pWidget);
|
| +
|
| CPDF_Matrix m_curMatrix;
|
| CPDF_Page* m_page;
|
| - CPDF_AnnotList* m_pAnnotList;
|
| - // CPDFSDK_Annot* m_pFocusAnnot;
|
| + nonstd::unique_ptr<CPDF_AnnotList> m_pAnnotList;
|
| CFX_PtrArray m_fxAnnotArray;
|
| CPDFSDK_Document* m_pSDKDoc;
|
| CPDFSDK_Widget* m_CaptureWidget;
|
|
|