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

Side by Side Diff: fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h

Issue 2031653003: Get rid of NULLs in fpdfsdk/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_core
Patch Set: rebase Created 4 years, 6 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/fpdfxfa/fpdfxfa_doc.cpp ('k') | fpdfsdk/fsdk_actionhandler.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_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ 7 #ifndef FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_
8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ 8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 FX_BOOL bVisible, 59 FX_BOOL bVisible,
60 const CFX_RectF* pRtAnchor); 60 const CFX_RectF* pRtAnchor);
61 // dwPos: (0:bottom 1:top) 61 // dwPos: (0:bottom 1:top)
62 virtual FX_BOOL GetPopupPos(CXFA_FFWidget* hWidget, 62 virtual FX_BOOL GetPopupPos(CXFA_FFWidget* hWidget,
63 FX_FLOAT fMinPopup, 63 FX_FLOAT fMinPopup,
64 FX_FLOAT fMaxPopup, 64 FX_FLOAT fMaxPopup,
65 const CFX_RectF& rtAnchor, 65 const CFX_RectF& rtAnchor,
66 CFX_RectF& rtPopup); 66 CFX_RectF& rtPopup);
67 virtual FX_BOOL PopupMenu(CXFA_FFWidget* hWidget, 67 virtual FX_BOOL PopupMenu(CXFA_FFWidget* hWidget,
68 CFX_PointF ptPopup, 68 CFX_PointF ptPopup,
69 const CFX_RectF* pRectExclude = NULL); 69 const CFX_RectF* pRectExclude = nullptr);
70 70
71 // dwFlags XFA_PAGEVIEWEVENT_Added, XFA_PAGEVIEWEVENT_Removing 71 // dwFlags XFA_PAGEVIEWEVENT_Added, XFA_PAGEVIEWEVENT_Removing
72 virtual void PageViewEvent(CXFA_FFPageView* pPageView, uint32_t dwFlags); 72 virtual void PageViewEvent(CXFA_FFPageView* pPageView, uint32_t dwFlags);
73 virtual void WidgetPostAdd(CXFA_FFWidget* hWidget, 73 virtual void WidgetPostAdd(CXFA_FFWidget* hWidget,
74 CXFA_WidgetAcc* pWidgetData); 74 CXFA_WidgetAcc* pWidgetData);
75 virtual void WidgetPreRemove(CXFA_FFWidget* hWidget, 75 virtual void WidgetPreRemove(CXFA_FFWidget* hWidget,
76 CXFA_WidgetAcc* pWidgetData); 76 CXFA_WidgetAcc* pWidgetData);
77 77
78 // return true if render it. 78 // return true if render it.
79 virtual FX_BOOL RenderCustomWidget(CXFA_FFWidget* hWidget, 79 virtual FX_BOOL RenderCustomWidget(CXFA_FFWidget* hWidget,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 virtual FX_BOOL GetGlobalProperty(CXFA_FFDoc* hDoc, 171 virtual FX_BOOL GetGlobalProperty(CXFA_FFDoc* hDoc,
172 const CFX_ByteStringC& szPropName, 172 const CFX_ByteStringC& szPropName,
173 CFXJSE_Value* pValue); 173 CFXJSE_Value* pValue);
174 virtual FX_BOOL SetGlobalProperty(CXFA_FFDoc* hDoc, 174 virtual FX_BOOL SetGlobalProperty(CXFA_FFDoc* hDoc,
175 const CFX_ByteStringC& szPropName, 175 const CFX_ByteStringC& szPropName,
176 CFXJSE_Value* pValue); 176 CFXJSE_Value* pValue);
177 virtual CPDF_Document* OpenPDF(CXFA_FFDoc* hDoc, 177 virtual CPDF_Document* OpenPDF(CXFA_FFDoc* hDoc,
178 IFX_FileRead* pFile, 178 IFX_FileRead* pFile,
179 FX_BOOL bTakeOverFile) { 179 FX_BOOL bTakeOverFile) {
180 return NULL; 180 return nullptr;
181 } 181 }
182 182
183 virtual IFX_FileRead* OpenLinkedFile(CXFA_FFDoc* hDoc, 183 virtual IFX_FileRead* OpenLinkedFile(CXFA_FFDoc* hDoc,
184 const CFX_WideString& wsLink); 184 const CFX_WideString& wsLink);
185 185
186 FX_BOOL _OnBeforeNotifySumbit(); 186 FX_BOOL _OnBeforeNotifySumbit();
187 void _OnAfterNotifySumbit(); 187 void _OnAfterNotifySumbit();
188 FX_BOOL _NotifySubmit(FX_BOOL bPrevOrPost); 188 FX_BOOL _NotifySubmit(FX_BOOL bPrevOrPost);
189 FX_BOOL _SubmitData(CXFA_FFDoc* hDoc, CXFA_Submit submit); 189 FX_BOOL _SubmitData(CXFA_FFDoc* hDoc, CXFA_Submit submit);
190 FX_BOOL _MailToInfo(CFX_WideString& csURL, 190 FX_BOOL _MailToInfo(CFX_WideString& csURL,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 CXFA_FFDoc* m_pXFADoc; 224 CXFA_FFDoc* m_pXFADoc;
225 CXFA_FFDocView* m_pXFADocView; 225 CXFA_FFDocView* m_pXFADocView;
226 CPDFXFA_App* m_pApp; 226 CPDFXFA_App* m_pApp;
227 IJS_Context* m_pJSContext; 227 IJS_Context* m_pJSContext;
228 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; 228 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList;
229 LoadStatus m_nLoadStatus; 229 LoadStatus m_nLoadStatus;
230 int m_nPageCount; 230 int m_nPageCount;
231 }; 231 };
232 232
233 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ 233 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp ('k') | fpdfsdk/fsdk_actionhandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698