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

Side by Side Diff: core/fpdfdoc/include/ipdf_formnotify.h

Issue 2332983002: Make ipdf_formnotify a pure virtual interface (Closed)
Patch Set: Created 4 years, 3 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 | « BUILD.gn ('k') | core/fpdfdoc/ipdf_formnotify.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 CORE_FPDFDOC_INCLUDE_IPDF_FORMNOTIFY_H_ 7 #ifndef CORE_FPDFDOC_INCLUDE_IPDF_FORMNOTIFY_H_
8 #define CORE_FPDFDOC_INCLUDE_IPDF_FORMNOTIFY_H_ 8 #define CORE_FPDFDOC_INCLUDE_IPDF_FORMNOTIFY_H_
9 9
10 #include "core/fxcrt/include/fx_string.h" 10 #include "core/fxcrt/include/fx_string.h"
11 11
12 class CPDF_FormField; 12 class CPDF_FormField;
13 class CPDF_InterForm; 13 class CPDF_InterForm;
14 14
15 class IPDF_FormNotify { 15 class IPDF_FormNotify {
16 public: 16 public:
17 virtual ~IPDF_FormNotify(); 17 virtual ~IPDF_FormNotify() {}
18 18
19 virtual int BeforeValueChange(CPDF_FormField* pField, 19 virtual int BeforeValueChange(CPDF_FormField* pField,
20 const CFX_WideString& csValue); 20 const CFX_WideString& csValue) = 0;
21 virtual void AfterValueChange(CPDF_FormField* pField); 21 virtual void AfterValueChange(CPDF_FormField* pField) = 0;
22 virtual int BeforeSelectionChange(CPDF_FormField* pField, 22 virtual int BeforeSelectionChange(CPDF_FormField* pField,
23 const CFX_WideString& csValue); 23 const CFX_WideString& csValue) = 0;
24 virtual void AfterSelectionChange(CPDF_FormField* pField); 24 virtual void AfterSelectionChange(CPDF_FormField* pField) = 0;
25 virtual void AfterCheckedStatusChange(CPDF_FormField* pField); 25 virtual void AfterCheckedStatusChange(CPDF_FormField* pField) = 0;
26 virtual int BeforeFormReset(CPDF_InterForm* pForm); 26 virtual int BeforeFormReset(CPDF_InterForm* pForm) = 0;
27 virtual void AfterFormReset(CPDF_InterForm* pForm); 27 virtual void AfterFormReset(CPDF_InterForm* pForm) = 0;
28 virtual int BeforeFormImportData(CPDF_InterForm* pForm); 28 virtual int BeforeFormImportData(CPDF_InterForm* pForm) = 0;
29 virtual void AfterFormImportData(CPDF_InterForm* pForm); 29 virtual void AfterFormImportData(CPDF_InterForm* pForm) = 0;
30 }; 30 };
31 31
32 #endif // CORE_FPDFDOC_INCLUDE_IPDF_FORMNOTIFY_H_ 32 #endif // CORE_FPDFDOC_INCLUDE_IPDF_FORMNOTIFY_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | core/fpdfdoc/ipdf_formnotify.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698