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

Side by Side Diff: fpdfsdk/include/formfiller/FFL_Notify.h

Issue 1252613002: FX_BOOL considered harmful. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual edits. Created 5 years, 5 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/formfiller/FFL_ListBox.h ('k') | fpdfsdk/include/formfiller/FFL_PushButton.h » ('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_FORMFILLER_FFL_NOTIFY_H_ 7 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_NOTIFY_H_
8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_NOTIFY_H_ 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_NOTIFY_H_
9 9
10 #include "../../../core/include/fpdfdoc/fpdf_doc.h" 10 #include "../../../core/include/fpdfdoc/fpdf_doc.h"
11 #include "../../../core/include/fxcrt/fx_string.h" 11 #include "../../../core/include/fxcrt/fx_string.h"
12 12
13 class CFFL_FormFiller; 13 class CFFL_FormFiller;
14 class CPDF_FormField; 14 class CPDF_FormField;
15 15
16 class CFFL_Notify 16 class CFFL_Notify
17 { 17 {
18 public: 18 public:
19 CFFL_Notify(CFFL_FormFiller * pFormFiller); 19 CFFL_Notify(CFFL_FormFiller * pFormFiller);
20 virtual ~CFFL_Notify(); 20 virtual ~CFFL_Notify();
21 21
22 public: 22 public:
23 » FX_BOOL»» » » » » » » » OnSetFocus(FX_BOOL & bExit); 23 » bool» » » » » » » » » OnSetFocus(bool & bExit);
24 » FX_BOOL»» » » » » » » » OnMouseEnter(FX_BOOL & bExit); 24 » bool» » » » » » » » » OnMouseEnter(bool & bExit);
25 » FX_BOOL»» » » » » » » » OnMouseDown(FX_BOOL & bExit); 25 » bool» » » » » » » » » OnMouseDown(bool & bExit);
26 » FX_BOOL»» » » » » » » » OnMouseUp(FX_BOOL & bExit); 26 » bool» » » » » » » » » OnMouseUp(bool & bExit);
27 » FX_BOOL»» » » » » » » » OnMouseExit(FX_BOOL & bExit); 27 » bool» » » » » » » » » OnMouseExit(bool & bExit);
28 » FX_BOOL»» » » » » » » » OnKillFocus(FX_BOOL & bExit); 28 » bool» » » » » » » » » OnKillFocus(bool & bExit);
29 29
30 » FX_BOOL»» » » » » » » » OnCalculate(); 30 » bool» » » » » » » » » OnCalculate();
31 » FX_BOOL»» » » » » » » » OnFormat(int iCommitKey); 31 » bool» » » » » » » » » OnFormat(int iCommitKey);
32 » FX_BOOL»» » » » » » » » OnValidate(CPDF_FormField* pFormField, CFX_WideString& strValue, CFX_WideString & strChange, 32 » bool» » » » » » » » » OnValidate(CPDF_FormField* pFormField, CFX_WideString& strValue, CFX_WideString & strChange,
33 » » » » » » » » » » » const CFX_WideString& strChangeEx, FX_BOOL bKeyDown, FX_BOOL bModifie r, 33 » » » » » » » » » » » const CFX_WideString& strChangeEx, bool bKeyDown, bool bModifier,
34 » » » » » » » » » » » FX_BOOL bShift, FX_BOOL & bRC); 34 » » » » » » » » » » » bool bShift, bool & bRC);
35 » FX_BOOL»» » » » » » » » OnKeyStroke(CPDF_FormField* pFormField, int nCommitKey, CFX_WideString& strValue , CFX_WideString& strChange, 35 » bool» » » » » » » » » OnKeyStroke(CPDF_FormField* pFormField, int nCommitKey, CFX_WideString& strValue , CFX_WideString& strChange,
36 » » » » » » » » » » » const CFX_WideString& strChangeEx, FX_BOOL bKeyDown, FX_BOOL bModifie r, 36 » » » » » » » » » » » const CFX_WideString& strChangeEx, bool bKeyDown, bool bModifier,
37 » » » » » » » » » » » FX_BOOL bShift, FX_BOOL bWillCommit, FX_BOOL bFieldFull, 37 » » » » » » » » » » » bool bShift, bool bWillCommit, bool bFieldFull,
38 » » » » » » » » » » » int& nSelStart, int& nSelEnd, FX_BOOL& bRC); 38 » » » » » » » » » » » int& nSelStart, int& nSelEnd, bool& bRC);
39 39
40 void BeforeNotify(); 40 void BeforeNotify();
41 void AfterNotify(); 41 void AfterNotify();
42 » FX_BOOL»» » » » » » » » IsNotifying() const {return m_nNotifyFlag > 0;} 42 » bool» » » » » » » » » IsNotifying() const {return m_nNotifyFlag > 0;}
43 43
44 private: 44 private:
45 » FX_BOOL»» » » » » » » » DoAAction(CPDF_AAction::AActionType eAAT, FX_BOOL & bExit); 45 » bool» » » » » » » » » DoAAction(CPDF_AAction::AActionType eAAT, bool & bExit);
46 » FX_BOOL»» » » » » » » » FindAAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action); 46 » bool» » » » » » » » » FindAAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action);
47 » FX_BOOL»» » » » » » » » FindAAction(CPDF_AAction aaction,CPDF_AAction::AActionType eAAT,CPDF_Action & ac tion); 47 » bool» » » » » » » » » FindAAction(CPDF_AAction aaction,CPDF_AAction::AActionType eAAT,CPDF_Action & ac tion);
48 » FX_BOOL»» » » » » » » » ExecuteActionTree(CPDF_AAction::AActionType eAAT, CPDF_Action & action, FX_BOOL& bExit); 48 » bool» » » » » » » » » ExecuteActionTree(CPDF_AAction::AActionType eAAT, CPDF_Action & action, bool& bE xit);
49 » FX_BOOL»» » » » » » » » ExecuteAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action,FX_BOOL& bExit ); 49 » bool» » » » » » » » » ExecuteAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action,bool& bExit);
50 50
51 » FX_BOOL»» » » » » » » » m_bDoActioning; 51 » bool» » » » » » » » » m_bDoActioning;
52 int32_t m_nNotif yFlag; 52 int32_t m_nNotif yFlag;
53 }; 53 };
54 54
55 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_NOTIFY_H_ 55 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_NOTIFY_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/formfiller/FFL_ListBox.h ('k') | fpdfsdk/include/formfiller/FFL_PushButton.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698