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

Unified Diff: core/include/fpdfdoc/fpdf_doc.h

Issue 1660633003: Fix prototypes for CPDF_FormNotify. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | fpdfsdk/include/fsdk_baseform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/include/fpdfdoc/fpdf_doc.h
diff --git a/core/include/fpdfdoc/fpdf_doc.h b/core/include/fpdfdoc/fpdf_doc.h
index fee6c49310a7d06028333d691acb14537368fd27..1d3cba239f71dd26ead27c2ce404f508089d2796 100644
--- a/core/include/fpdfdoc/fpdf_doc.h
+++ b/core/include/fpdfdoc/fpdf_doc.h
@@ -997,23 +997,21 @@ class CPDF_FormNotify {
public:
virtual ~CPDF_FormNotify() {}
- virtual int BeforeValueChange(const CPDF_FormField* pField,
- CFX_WideString& csValue) {
+ virtual int BeforeValueChange(CPDF_FormField* pField,
+ const CFX_WideString& csValue) {
return 0;
}
- virtual int AfterValueChange(const CPDF_FormField* pField) { return 0; }
-
- virtual int BeforeSelectionChange(const CPDF_FormField* pField,
- CFX_WideString& csValue) {
+ virtual void AfterValueChange(CPDF_FormField* pField) {}
+ virtual int BeforeSelectionChange(CPDF_FormField* pField,
+ const CFX_WideString& csValue) {
return 0;
}
- virtual int AfterSelectionChange(const CPDF_FormField* pField) { return 0; }
-
+ virtual void AfterSelectionChange(CPDF_FormField* pField) {}
virtual void AfterCheckedStatusChange(CPDF_FormField* pField) {}
- virtual int BeforeFormReset(const CPDF_InterForm* pForm) { return 0; }
- virtual int AfterFormReset(const CPDF_InterForm* pForm) { return 0; }
- virtual int BeforeFormImportData(const CPDF_InterForm* pForm) { return 0; }
- virtual int AfterFormImportData(const CPDF_InterForm* pForm) { return 0; }
+ virtual int BeforeFormReset(CPDF_InterForm* pForm) { return 0; }
+ virtual void AfterFormReset(CPDF_InterForm* pForm) {}
+ virtual int BeforeFormImportData(CPDF_InterForm* pForm) { return 0; }
+ virtual void AfterFormImportData(CPDF_InterForm* pForm) {}
};
FX_BOOL FPDF_GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict);
« no previous file with comments | « no previous file | fpdfsdk/include/fsdk_baseform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698