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

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

Issue 1265503005: clang-format all pdfium code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: sigh Created 5 years, 4 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
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 public:
18 public: 18 CFFL_Notify(CFFL_FormFiller* pFormFiller);
19 » CFFL_Notify(CFFL_FormFiller * pFormFiller); 19 virtual ~CFFL_Notify();
20 » virtual ~CFFL_Notify();
21 20
22 public: 21 public:
23 » FX_BOOL»» » » » » » » » OnSetFocus(FX_BOOL & bExit); 22 FX_BOOL OnSetFocus(FX_BOOL& bExit);
24 » FX_BOOL»» » » » » » » » OnMouseEnter(FX_BOOL & bExit); 23 FX_BOOL OnMouseEnter(FX_BOOL& bExit);
25 » FX_BOOL»» » » » » » » » OnMouseDown(FX_BOOL & bExit); 24 FX_BOOL OnMouseDown(FX_BOOL& bExit);
26 » FX_BOOL»» » » » » » » » OnMouseUp(FX_BOOL & bExit); 25 FX_BOOL OnMouseUp(FX_BOOL& bExit);
27 » FX_BOOL»» » » » » » » » OnMouseExit(FX_BOOL & bExit); 26 FX_BOOL OnMouseExit(FX_BOOL& bExit);
28 » FX_BOOL»» » » » » » » » OnKillFocus(FX_BOOL & bExit); 27 FX_BOOL OnKillFocus(FX_BOOL& bExit);
29 28
30 » FX_BOOL»» » » » » » » » OnCalculate(); 29 FX_BOOL OnCalculate();
31 » FX_BOOL»» » » » » » » » OnFormat(int iCommitKey); 30 FX_BOOL OnFormat(int iCommitKey);
32 » FX_BOOL»» » » » » » » » OnValidate(CPDF_FormField* pFormField, CFX_WideString& strValue, CFX_WideString & strChange, 31 FX_BOOL OnValidate(CPDF_FormField* pFormField,
33 » » » » » » » » » » » const CFX_WideString& strChangeEx, FX_BOOL bKeyDown, FX_BOOL bModifie r, 32 CFX_WideString& strValue,
34 » » » » » » » » » » » FX_BOOL bShift, FX_BOOL & bRC); 33 CFX_WideString& strChange,
35 » FX_BOOL»» » » » » » » » OnKeyStroke(CPDF_FormField* pFormField, int nCommitKey, CFX_WideString& strValue , CFX_WideString& strChange, 34 const CFX_WideString& strChangeEx,
36 » » » » » » » » » » » const CFX_WideString& strChangeEx, FX_BOOL bKeyDown, FX_BOOL bModifie r, 35 FX_BOOL bKeyDown,
37 » » » » » » » » » » » FX_BOOL bShift, FX_BOOL bWillCommit, FX_BOOL bFieldFull, 36 FX_BOOL bModifier,
38 » » » » » » » » » » » int& nSelStart, int& nSelEnd, FX_BOOL& bRC); 37 FX_BOOL bShift,
38 FX_BOOL& bRC);
39 FX_BOOL OnKeyStroke(CPDF_FormField* pFormField,
40 int nCommitKey,
41 CFX_WideString& strValue,
42 CFX_WideString& strChange,
43 const CFX_WideString& strChangeEx,
44 FX_BOOL bKeyDown,
45 FX_BOOL bModifier,
46 FX_BOOL bShift,
47 FX_BOOL bWillCommit,
48 FX_BOOL bFieldFull,
49 int& nSelStart,
50 int& nSelEnd,
51 FX_BOOL& bRC);
39 52
40 » void» » » » » » » » » BeforeNotify(); 53 void BeforeNotify();
41 » void» » » » » » » » » AfterNotify(); 54 void AfterNotify();
42 » FX_BOOL»» » » » » » » » IsNotifying() const {return m_nNotifyFlag > 0;} 55 FX_BOOL IsNotifying() const { return m_nNotifyFlag > 0; }
43 56
44 private: 57 private:
45 » FX_BOOL»» » » » » » » » DoAAction(CPDF_AAction::AActionType eAAT, FX_BOOL & bExit); 58 FX_BOOL DoAAction(CPDF_AAction::AActionType eAAT, FX_BOOL& bExit);
46 » FX_BOOL»» » » » » » » » FindAAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action); 59 FX_BOOL FindAAction(CPDF_AAction::AActionType eAAT, CPDF_Action& action);
47 » FX_BOOL»» » » » » » » » FindAAction(CPDF_AAction aaction,CPDF_AAction::AActionType eAAT,CPDF_Action & ac tion); 60 FX_BOOL FindAAction(CPDF_AAction aaction,
48 » FX_BOOL»» » » » » » » » ExecuteActionTree(CPDF_AAction::AActionType eAAT, CPDF_Action & action, FX_BOOL& bExit); 61 CPDF_AAction::AActionType eAAT,
49 » FX_BOOL»» » » » » » » » ExecuteAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action,FX_BOOL& bExit ); 62 CPDF_Action& action);
63 FX_BOOL ExecuteActionTree(CPDF_AAction::AActionType eAAT,
64 CPDF_Action& action,
65 FX_BOOL& bExit);
66 FX_BOOL ExecuteAction(CPDF_AAction::AActionType eAAT,
67 CPDF_Action& action,
68 FX_BOOL& bExit);
50 69
51 » FX_BOOL»» » » » » » » » m_bDoActioning; 70 FX_BOOL m_bDoActioning;
52 » int32_t»» » » » » » » m_nNotif yFlag; 71 int32_t m_nNotifyFlag;
53 }; 72 };
54 73
55 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_NOTIFY_H_ 74 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_NOTIFY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698