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

Side by Side Diff: fpdfsdk/fpdfxfa/cpdfxfa_app.h

Issue 2412523002: Cleanup env variable names (Closed)
Patch Set: Fix spelling 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/fpdfformfill.cpp ('k') | fpdfsdk/fpdfxfa/cpdfxfa_app.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_FPDFXFA_CPDFXFA_APP_H_ 7 #ifndef FPDFSDK_FPDFXFA_CPDFXFA_APP_H_
8 #define FPDFSDK_FPDFXFA_CPDFXFA_APP_H_ 8 #define FPDFSDK_FPDFXFA_CPDFXFA_APP_H_
9 9
10 #include "xfa/fxfa/fxfa.h" 10 #include "xfa/fxfa/fxfa.h"
11 11
12 class CPDFSDK_FormFillEnvironment; 12 class CPDFSDK_FormFillEnvironment;
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(v8::Isolate* pIsolate); 23 FX_BOOL Initialize(v8::Isolate* pIsolate);
24 CXFA_FFApp* GetXFAApp() { return m_pXFAApp.get(); } 24 CXFA_FFApp* GetXFAApp() { return m_pXFAApp.get(); }
25 25
26 FX_BOOL AddFormFillEnv(CPDFSDK_FormFillEnvironment* pEnv); 26 FX_BOOL AddFormFillEnv(CPDFSDK_FormFillEnvironment* pFormFillEnv);
27 FX_BOOL RemoveFormFillEnv(CPDFSDK_FormFillEnvironment* pEnv); 27 FX_BOOL RemoveFormFillEnv(CPDFSDK_FormFillEnvironment* pFormFillEnv);
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 v8::Isolate* GetJSERuntime() const { return m_pIsolate; } 34 v8::Isolate* GetJSERuntime() const { return m_pIsolate; }
35 35
36 // IFXA_AppProvider: 36 // IFXA_AppProvider:
37 void GetAppType(CFX_WideString& wsAppType) override; 37 void GetAppType(CFX_WideString& wsAppType) override;
(...skipping 22 matching lines...) Expand all
60 const CFX_WideString& wsEncode, 60 const CFX_WideString& wsEncode,
61 const CFX_WideString& wsHeader, 61 const CFX_WideString& wsHeader,
62 CFX_WideString& wsResponse) override; 62 CFX_WideString& wsResponse) override;
63 FX_BOOL PutRequestURL(const CFX_WideString& wsURL, 63 FX_BOOL PutRequestURL(const CFX_WideString& wsURL,
64 const CFX_WideString& wsData, 64 const CFX_WideString& wsData,
65 const CFX_WideString& wsEncode) override; 65 const CFX_WideString& wsEncode) override;
66 66
67 void LoadString(int32_t iStringID, CFX_WideString& wsString) override; 67 void LoadString(int32_t iStringID, CFX_WideString& wsString) override;
68 IFWL_AdapterTimerMgr* GetTimerMgr() override; 68 IFWL_AdapterTimerMgr* GetTimerMgr() override;
69 69
70 CFX_ArrayTemplate<CPDFSDK_FormFillEnvironment*> m_pEnvList; 70 CFX_ArrayTemplate<CPDFSDK_FormFillEnvironment*> m_pFormFillEnvList;
71 71
72 protected: 72 protected:
73 FX_BOOL m_bJavaScriptInitialized; 73 FX_BOOL m_bJavaScriptInitialized;
74 std::unique_ptr<CXFA_FFApp> m_pXFAApp; 74 std::unique_ptr<CXFA_FFApp> m_pXFAApp;
75 v8::Isolate* m_pIsolate; 75 v8::Isolate* m_pIsolate;
76 CFX_WideString m_csAppType; 76 CFX_WideString m_csAppType;
77 }; 77 };
78 78
79 #endif // FPDFSDK_FPDFXFA_CPDFXFA_APP_H_ 79 #endif // FPDFSDK_FPDFXFA_CPDFXFA_APP_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfformfill.cpp ('k') | fpdfsdk/fpdfxfa/cpdfxfa_app.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698