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

Side by Side Diff: fpdfsdk/formfiller/cffl_interactiveformfiller.h

Issue 2400473002: Start proxying CPDFSDK_Document methods through CPDFSDK_FormFillEnvironment (Closed)
Patch Set: Rebase to master Created 4 years, 2 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/cpdfsdk_xfawidgethandler.cpp ('k') | fpdfsdk/formfiller/cffl_interactiveformfiller.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 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_FORMFILLER_CFFL_INTERACTIVEFORMFILLER_H_ 7 #ifndef FPDFSDK_FORMFILLER_CFFL_INTERACTIVEFORMFILLER_H_
8 #define FPDFSDK_FORMFILLER_CFFL_INTERACTIVEFORMFILLER_H_ 8 #define FPDFSDK_FORMFILLER_CFFL_INTERACTIVEFORMFILLER_H_
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 12
13 #include "fpdfsdk/cpdfsdk_annot.h" 13 #include "fpdfsdk/cpdfsdk_annot.h"
14 #include "fpdfsdk/fsdk_define.h" 14 #include "fpdfsdk/fsdk_define.h"
15 #include "fpdfsdk/pdfwindow/PWL_Edit.h" 15 #include "fpdfsdk/pdfwindow/PWL_Edit.h"
16 16
17 class CFFL_FormFiller; 17 class CFFL_FormFiller;
18 class CPDFSDK_FormFillEnvironment; 18 class CPDFSDK_FormFillEnvironment;
19 class CPDFSDK_PageView; 19 class CPDFSDK_PageView;
20 class CPDFSDK_Widget; 20 class CPDFSDK_Widget;
21 21
22 class CFFL_InteractiveFormFiller : public IPWL_Filler_Notify { 22 class CFFL_InteractiveFormFiller : public IPWL_Filler_Notify {
23 public: 23 public:
24 explicit CFFL_InteractiveFormFiller(CPDFSDK_FormFillEnvironment* pEnv); 24 explicit CFFL_InteractiveFormFiller(
25 CPDFSDK_FormFillEnvironment* pFormFillEnv);
25 ~CFFL_InteractiveFormFiller() override; 26 ~CFFL_InteractiveFormFiller() override;
26 27
27 FX_BOOL Annot_HitTest(CPDFSDK_PageView* pPageView, 28 FX_BOOL Annot_HitTest(CPDFSDK_PageView* pPageView,
28 CPDFSDK_Annot* pAnnot, 29 CPDFSDK_Annot* pAnnot,
29 CFX_FloatPoint point); 30 CFX_FloatPoint point);
30 FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); 31 FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot);
31 void OnDraw(CPDFSDK_PageView* pPageView, 32 void OnDraw(CPDFSDK_PageView* pPageView,
32 CPDFSDK_Annot* pAnnot, 33 CPDFSDK_Annot* pAnnot,
33 CFX_RenderDevice* pDevice, 34 CFX_RenderDevice* pDevice,
34 CFX_Matrix* pUser2Device); 35 CFX_Matrix* pUser2Device);
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 uint32_t nFlag) override; 161 uint32_t nFlag) override;
161 void OnPopupPostOpen(void* pPrivateData, 162 void OnPopupPostOpen(void* pPrivateData,
162 FX_BOOL& bExit, 163 FX_BOOL& bExit,
163 uint32_t nFlag) override; 164 uint32_t nFlag) override;
164 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget, 165 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget,
165 FX_BOOL bSameField, 166 FX_BOOL bSameField,
166 FX_BOOL bNext); 167 FX_BOOL bNext);
167 #endif // PDF_ENABLE_XFA 168 #endif // PDF_ENABLE_XFA
168 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot); 169 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot);
169 170
170 CPDFSDK_FormFillEnvironment* const m_pEnv; 171 CPDFSDK_FormFillEnvironment* const m_pFormFillEnv;
171 CFFL_Widget2Filler m_Maps; 172 CFFL_Widget2Filler m_Maps;
172 FX_BOOL m_bNotifying; 173 FX_BOOL m_bNotifying;
173 }; 174 };
174 175
175 class CFFL_PrivateData { 176 class CFFL_PrivateData {
176 public: 177 public:
177 CPDFSDK_Widget* pWidget; 178 CPDFSDK_Widget* pWidget;
178 CPDFSDK_PageView* pPageView; 179 CPDFSDK_PageView* pPageView;
179 int nWidgetAge; 180 int nWidgetAge;
180 int nValueAge; 181 int nValueAge;
181 }; 182 };
182 183
183 #endif // FPDFSDK_FORMFILLER_CFFL_INTERACTIVEFORMFILLER_H_ 184 #endif // FPDFSDK_FORMFILLER_CFFL_INTERACTIVEFORMFILLER_H_
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_xfawidgethandler.cpp ('k') | fpdfsdk/formfiller/cffl_interactiveformfiller.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698