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

Side by Side Diff: fpdfsdk/include/fpdfxfa/fpdfxfa_app.h

Issue 1846993002: Remove IXFA_* interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/fsdk_mgr.cpp ('k') | fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h » ('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_INCLUDE_FPDFXFA_FPDFXFA_APP_H_ 7 #ifndef FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_APP_H_
8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_APP_H_ 8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_APP_H_
9 9
10 #include "xfa/include/fxfa/fxfa.h" 10 #include "xfa/include/fxfa/fxfa.h"
11 11
12 class CPDFDoc_Environment; 12 class CPDFDoc_Environment;
13 class IFXJS_Runtime; 13 class IFXJS_Runtime;
14 14
15 class CPDFXFA_App : public IXFA_AppProvider { 15 class CPDFXFA_App : public IXFA_AppProvider {
16 public: 16 public:
17 static CPDFXFA_App* GetInstance(); 17 static CPDFXFA_App* GetInstance();
18 static void ReleaseInstance(); 18 static void ReleaseInstance();
19 19
20 CPDFXFA_App(); 20 CPDFXFA_App();
21 ~CPDFXFA_App() override; 21 ~CPDFXFA_App() override;
22 22
23 FX_BOOL Initialize(FXJSE_HRUNTIME hRuntime); 23 FX_BOOL Initialize(FXJSE_HRUNTIME hRuntime);
24 IXFA_App* GetXFAApp() { return m_pXFAApp; } 24 CXFA_FFApp* GetXFAApp() { return m_pXFAApp; }
25 25
26 FX_BOOL AddFormFillEnv(CPDFDoc_Environment* pEnv); 26 FX_BOOL AddFormFillEnv(CPDFDoc_Environment* pEnv);
27 FX_BOOL RemoveFormFillEnv(CPDFDoc_Environment* pEnv); 27 FX_BOOL RemoveFormFillEnv(CPDFDoc_Environment* pEnv);
28 28
29 FX_BOOL IsJavaScriptInitialized() const { return m_bJavaScriptInitialized; } 29 FX_BOOL IsJavaScriptInitialized() const { return m_bJavaScriptInitialized; }
30 void SetJavaScriptInitialized(FX_BOOL bInitialized) { 30 void SetJavaScriptInitialized(FX_BOOL bInitialized) {
31 m_bJavaScriptInitialized = bInitialized; 31 m_bJavaScriptInitialized = bInitialized;
32 } 32 }
33 33
34 FXJSE_HRUNTIME GetJSERuntime() const { return m_hJSERuntime; } 34 FXJSE_HRUNTIME GetJSERuntime() const { return m_hJSERuntime; }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 CFX_WideStringArray& wsPathArr, 81 CFX_WideStringArray& wsPathArr,
82 FX_BOOL bOpen) override; 82 FX_BOOL bOpen) override;
83 IFWL_AdapterTimerMgr* GetTimerMgr() override; 83 IFWL_AdapterTimerMgr* GetTimerMgr() override;
84 84
85 CFX_ArrayTemplate<CPDFDoc_Environment*> m_pEnvList; 85 CFX_ArrayTemplate<CPDFDoc_Environment*> m_pEnvList;
86 86
87 protected: 87 protected:
88 static CPDFXFA_App* g_pApp; 88 static CPDFXFA_App* g_pApp;
89 89
90 FX_BOOL m_bJavaScriptInitialized; 90 FX_BOOL m_bJavaScriptInitialized;
91 IXFA_App* m_pXFAApp; 91 CXFA_FFApp* m_pXFAApp;
92 IXFA_FontMgr* m_pFontMgr;
93 FXJSE_HRUNTIME m_hJSERuntime; 92 FXJSE_HRUNTIME m_hJSERuntime;
94 IFXJS_Runtime* m_pJSRuntime; 93 IFXJS_Runtime* m_pJSRuntime;
95 CFX_WideString m_csAppType; 94 CFX_WideString m_csAppType;
96 bool m_bOwnedRuntime; 95 bool m_bOwnedRuntime;
97 }; 96 };
98 97
99 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_APP_H_ 98 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_APP_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_mgr.cpp ('k') | fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698