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

Side by Side Diff: fpdfsdk/cpdfsdk_annothandlermgr.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_CPDFSDK_ANNOTHANDLERMGR_H_ 7 #ifndef FPDFSDK_CPDFSDK_ANNOTHANDLERMGR_H_
8 #define FPDFSDK_CPDFSDK_ANNOTHANDLERMGR_H_ 8 #define FPDFSDK_CPDFSDK_ANNOTHANDLERMGR_H_
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 12
13 #include "core/fpdfdoc/cpdf_annot.h" 13 #include "core/fpdfdoc/cpdf_annot.h"
14 #include "core/fxcrt/fx_basic.h" 14 #include "core/fxcrt/fx_basic.h"
15 #include "core/fxcrt/fx_coordinates.h" 15 #include "core/fxcrt/fx_coordinates.h"
16 #include "fpdfsdk/cpdfsdk_annot.h" 16 #include "fpdfsdk/cpdfsdk_annot.h"
17 17
18 class CFX_Matrix; 18 class CFX_Matrix;
19 class CFX_RenderDevice; 19 class CFX_RenderDevice;
20 class CPDFSDK_Environment; 20 class CPDFSDK_FormFillEnvironment;
21 class CPDFSDK_BAAnnotHandler; 21 class CPDFSDK_BAAnnotHandler;
22 class CPDFSDK_WidgetHandler; 22 class CPDFSDK_WidgetHandler;
23 class CPDFSDK_PageView; 23 class CPDFSDK_PageView;
24 class IPDFSDK_AnnotHandler; 24 class IPDFSDK_AnnotHandler;
25 25
26 #ifdef PDF_ENABLE_XFA 26 #ifdef PDF_ENABLE_XFA
27 class CPDFSDK_XFAWidgetHandler; 27 class CPDFSDK_XFAWidgetHandler;
28 class CXFA_FFWidget; 28 class CXFA_FFWidget;
29 #endif // PDF_ENABLE_XFA 29 #endif // PDF_ENABLE_XFA
30 30
31 class CPDFSDK_AnnotHandlerMgr { 31 class CPDFSDK_AnnotHandlerMgr {
32 public: 32 public:
33 explicit CPDFSDK_AnnotHandlerMgr(CPDFSDK_Environment* pApp); 33 explicit CPDFSDK_AnnotHandlerMgr(CPDFSDK_FormFillEnvironment* pApp);
34 ~CPDFSDK_AnnotHandlerMgr(); 34 ~CPDFSDK_AnnotHandlerMgr();
35 35
36 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView); 36 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView);
37 #ifdef PDF_ENABLE_XFA 37 #ifdef PDF_ENABLE_XFA
38 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* pAnnot, CPDFSDK_PageView* pPageView); 38 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* pAnnot, CPDFSDK_PageView* pPageView);
39 #endif // PDF_ENABLE_XFA 39 #endif // PDF_ENABLE_XFA
40 void ReleaseAnnot(CPDFSDK_Annot* pAnnot); 40 void ReleaseAnnot(CPDFSDK_Annot* pAnnot);
41 41
42 void Annot_OnCreate(CPDFSDK_Annot* pAnnot); 42 void Annot_OnCreate(CPDFSDK_Annot* pAnnot);
43 void Annot_OnLoad(CPDFSDK_Annot* pAnnot); 43 void Annot_OnLoad(CPDFSDK_Annot* pAnnot);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 private: 105 private:
106 IPDFSDK_AnnotHandler* GetAnnotHandler(CPDF_Annot::Subtype nSubtype) const; 106 IPDFSDK_AnnotHandler* GetAnnotHandler(CPDF_Annot::Subtype nSubtype) const;
107 CPDFSDK_Annot* GetNextAnnot(CPDFSDK_Annot* pSDKAnnot, FX_BOOL bNext); 107 CPDFSDK_Annot* GetNextAnnot(CPDFSDK_Annot* pSDKAnnot, FX_BOOL bNext);
108 108
109 std::unique_ptr<CPDFSDK_BAAnnotHandler> m_pBAAnnotHandler; 109 std::unique_ptr<CPDFSDK_BAAnnotHandler> m_pBAAnnotHandler;
110 std::unique_ptr<CPDFSDK_WidgetHandler> m_pWidgetHandler; 110 std::unique_ptr<CPDFSDK_WidgetHandler> m_pWidgetHandler;
111 #ifdef PDF_ENABLE_XFA 111 #ifdef PDF_ENABLE_XFA
112 std::unique_ptr<CPDFSDK_XFAWidgetHandler> m_pXFAWidgetHandler; 112 std::unique_ptr<CPDFSDK_XFAWidgetHandler> m_pXFAWidgetHandler;
113 #endif // PDF_ENABLE_XFA 113 #endif // PDF_ENABLE_XFA
114 114
115 CPDFSDK_Environment* m_pEnv; 115 CPDFSDK_FormFillEnvironment* m_pEnv;
116 }; 116 };
117 117
118 #endif // FPDFSDK_CPDFSDK_ANNOTHANDLERMGR_H_ 118 #endif // FPDFSDK_CPDFSDK_ANNOTHANDLERMGR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698