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

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

Issue 2391313002: Rename CPDFSDK_Environment to 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
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_Environment; 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_Environment* pEnv); 24 explicit CFFL_InteractiveFormFiller(CPDFSDK_FormFillEnvironment* pEnv);
25 ~CFFL_InteractiveFormFiller() override; 25 ~CFFL_InteractiveFormFiller() override;
26 26
27 FX_BOOL Annot_HitTest(CPDFSDK_PageView* pPageView, 27 FX_BOOL Annot_HitTest(CPDFSDK_PageView* pPageView,
28 CPDFSDK_Annot* pAnnot, 28 CPDFSDK_Annot* pAnnot,
29 CFX_FloatPoint point); 29 CFX_FloatPoint point);
30 FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); 30 FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot);
31 void OnDraw(CPDFSDK_PageView* pPageView, 31 void OnDraw(CPDFSDK_PageView* pPageView,
32 CPDFSDK_Annot* pAnnot, 32 CPDFSDK_Annot* pAnnot,
33 CFX_RenderDevice* pDevice, 33 CFX_RenderDevice* pDevice,
34 CFX_Matrix* pUser2Device); 34 CFX_Matrix* pUser2Device);
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 uint32_t nFlag) override; 160 uint32_t nFlag) override;
161 void OnPopupPostOpen(void* pPrivateData, 161 void OnPopupPostOpen(void* pPrivateData,
162 FX_BOOL& bExit, 162 FX_BOOL& bExit,
163 uint32_t nFlag) override; 163 uint32_t nFlag) override;
164 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget, 164 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget,
165 FX_BOOL bSameField, 165 FX_BOOL bSameField,
166 FX_BOOL bNext); 166 FX_BOOL bNext);
167 #endif // PDF_ENABLE_XFA 167 #endif // PDF_ENABLE_XFA
168 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot); 168 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot);
169 169
170 CPDFSDK_Environment* const m_pEnv; 170 CPDFSDK_FormFillEnvironment* const m_pEnv;
171 CFFL_Widget2Filler m_Maps; 171 CFFL_Widget2Filler m_Maps;
172 FX_BOOL m_bNotifying; 172 FX_BOOL m_bNotifying;
173 }; 173 };
174 174
175 class CFFL_PrivateData { 175 class CFFL_PrivateData {
176 public: 176 public:
177 CPDFSDK_Widget* pWidget; 177 CPDFSDK_Widget* pWidget;
178 CPDFSDK_PageView* pPageView; 178 CPDFSDK_PageView* pPageView;
179 int nWidgetAge; 179 int nWidgetAge;
180 int nValueAge; 180 int nValueAge;
181 }; 181 };
182 182
183 #endif // FPDFSDK_FORMFILLER_CFFL_INTERACTIVEFORMFILLER_H_ 183 #endif // FPDFSDK_FORMFILLER_CFFL_INTERACTIVEFORMFILLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698