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

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

Issue 1737593006: Re-land "Replace CPDF_Rect and CPDF_Point with CFX types." (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Ooops. Created 4 years, 9 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_IFORMFILLER_H_ 7 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_
8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_
9 9
10 #include <map> 10 #include <map>
11 11
12 #include "fpdfsdk/include/fsdk_define.h" 12 #include "fpdfsdk/include/fsdk_define.h"
13 #include "fpdfsdk/include/pdfwindow/PWL_Edit.h" 13 #include "fpdfsdk/include/pdfwindow/PWL_Edit.h"
14 14
15 class CFFL_FormFiller; 15 class CFFL_FormFiller;
16 class CFFL_PrivateData; 16 class CFFL_PrivateData;
17 class CPDFDoc_Environment; 17 class CPDFDoc_Environment;
18 class CPDFSDK_Annot; 18 class CPDFSDK_Annot;
19 class CPDFSDK_PageView; 19 class CPDFSDK_PageView;
20 class CPDFSDK_Widget; 20 class CPDFSDK_Widget;
21 21
22 class CFFL_IFormFiller : public IPWL_Filler_Notify { 22 class CFFL_IFormFiller : public IPWL_Filler_Notify {
23 public: 23 public:
24 explicit CFFL_IFormFiller(CPDFDoc_Environment* pApp); 24 explicit CFFL_IFormFiller(CPDFDoc_Environment* pApp);
25 ~CFFL_IFormFiller() override; 25 ~CFFL_IFormFiller() override;
26 26
27 virtual FX_BOOL Annot_HitTest(CPDFSDK_PageView* pPageView, 27 virtual FX_BOOL Annot_HitTest(CPDFSDK_PageView* pPageView,
28 CPDFSDK_Annot* pAnnot, 28 CPDFSDK_Annot* pAnnot,
29 CPDF_Point point); 29 CFX_FloatPoint point);
30 virtual FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView, 30 virtual FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView,
31 CPDFSDK_Annot* pAnnot); 31 CPDFSDK_Annot* pAnnot);
32 virtual void OnDraw(CPDFSDK_PageView* pPageView, 32 virtual void OnDraw(CPDFSDK_PageView* pPageView,
33 CPDFSDK_Annot* pAnnot, 33 CPDFSDK_Annot* pAnnot,
34 CFX_RenderDevice* pDevice, 34 CFX_RenderDevice* pDevice,
35 CFX_Matrix* pUser2Device, 35 CFX_Matrix* pUser2Device,
36 FX_DWORD dwFlags); 36 FX_DWORD dwFlags);
37 37
38 virtual void OnCreate(CPDFSDK_Annot* pAnnot); 38 virtual void OnCreate(CPDFSDK_Annot* pAnnot);
39 virtual void OnLoad(CPDFSDK_Annot* pAnnot); 39 virtual void OnLoad(CPDFSDK_Annot* pAnnot);
40 virtual void OnDelete(CPDFSDK_Annot* pAnnot); 40 virtual void OnDelete(CPDFSDK_Annot* pAnnot);
41 41
42 virtual void OnMouseEnter(CPDFSDK_PageView* pPageView, 42 virtual void OnMouseEnter(CPDFSDK_PageView* pPageView,
43 CPDFSDK_Annot* pAnnot, 43 CPDFSDK_Annot* pAnnot,
44 FX_UINT nFlag); 44 FX_UINT nFlag);
45 virtual void OnMouseExit(CPDFSDK_PageView* pPageView, 45 virtual void OnMouseExit(CPDFSDK_PageView* pPageView,
46 CPDFSDK_Annot* pAnnot, 46 CPDFSDK_Annot* pAnnot,
47 FX_UINT nFlag); 47 FX_UINT nFlag);
48 48
49 virtual FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView, 49 virtual FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView,
50 CPDFSDK_Annot* pAnnot, 50 CPDFSDK_Annot* pAnnot,
51 FX_UINT nFlags, 51 FX_UINT nFlags,
52 const CPDF_Point& point); 52 const CFX_FloatPoint& point);
53 virtual FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView, 53 virtual FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView,
54 CPDFSDK_Annot* pAnnot, 54 CPDFSDK_Annot* pAnnot,
55 FX_UINT nFlags, 55 FX_UINT nFlags,
56 const CPDF_Point& point); 56 const CFX_FloatPoint& point);
57 virtual FX_BOOL OnLButtonDblClk(CPDFSDK_PageView* pPageView, 57 virtual FX_BOOL OnLButtonDblClk(CPDFSDK_PageView* pPageView,
58 CPDFSDK_Annot* pAnnot, 58 CPDFSDK_Annot* pAnnot,
59 FX_UINT nFlags, 59 FX_UINT nFlags,
60 const CPDF_Point& point); 60 const CFX_FloatPoint& point);
61 virtual FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView, 61 virtual FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView,
62 CPDFSDK_Annot* pAnnot, 62 CPDFSDK_Annot* pAnnot,
63 FX_UINT nFlags, 63 FX_UINT nFlags,
64 const CPDF_Point& point); 64 const CFX_FloatPoint& point);
65 virtual FX_BOOL OnMouseWheel(CPDFSDK_PageView* pPageView, 65 virtual FX_BOOL OnMouseWheel(CPDFSDK_PageView* pPageView,
66 CPDFSDK_Annot* pAnnot, 66 CPDFSDK_Annot* pAnnot,
67 FX_UINT nFlags, 67 FX_UINT nFlags,
68 short zDelta, 68 short zDelta,
69 const CPDF_Point& point); 69 const CFX_FloatPoint& point);
70 virtual FX_BOOL OnRButtonDown(CPDFSDK_PageView* pPageView, 70 virtual FX_BOOL OnRButtonDown(CPDFSDK_PageView* pPageView,
71 CPDFSDK_Annot* pAnnot, 71 CPDFSDK_Annot* pAnnot,
72 FX_UINT nFlags, 72 FX_UINT nFlags,
73 const CPDF_Point& point); 73 const CFX_FloatPoint& point);
74 virtual FX_BOOL OnRButtonUp(CPDFSDK_PageView* pPageView, 74 virtual FX_BOOL OnRButtonUp(CPDFSDK_PageView* pPageView,
75 CPDFSDK_Annot* pAnnot, 75 CPDFSDK_Annot* pAnnot,
76 FX_UINT nFlags, 76 FX_UINT nFlags,
77 const CPDF_Point& point); 77 const CFX_FloatPoint& point);
78 78
79 virtual FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, 79 virtual FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot,
80 FX_UINT nKeyCode, 80 FX_UINT nKeyCode,
81 FX_UINT nFlags); 81 FX_UINT nFlags);
82 virtual FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags); 82 virtual FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags);
83 83
84 virtual FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag); 84 virtual FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag);
85 virtual FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag); 85 virtual FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag);
86 86
87 CFFL_FormFiller* GetFormFiller(CPDFSDK_Annot* pAnnot, FX_BOOL bRegister); 87 CFFL_FormFiller* GetFormFiller(CPDFSDK_Annot* pAnnot, FX_BOOL bRegister);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 class CFFL_PrivateData { 179 class CFFL_PrivateData {
180 public: 180 public:
181 CPDFSDK_Widget* pWidget; 181 CPDFSDK_Widget* pWidget;
182 CPDFSDK_PageView* pPageView; 182 CPDFSDK_PageView* pPageView;
183 int nWidgetAge; 183 int nWidgetAge;
184 int nValueAge; 184 int nValueAge;
185 }; 185 };
186 186
187 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ 187 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/formfiller/FFL_FormFiller.h ('k') | fpdfsdk/include/formfiller/FFL_RadioButton.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698