OLD | NEW |
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 XFA_FXFA_PARSER_CXFA_SCRIPTCONTEXT_H_ | 7 #ifndef XFA_FXFA_PARSER_CXFA_SCRIPTCONTEXT_H_ |
8 #define XFA_FXFA_PARSER_CXFA_SCRIPTCONTEXT_H_ | 8 #define XFA_FXFA_PARSER_CXFA_SCRIPTCONTEXT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 CXFA_Node* pSubform); | 102 CXFA_Node* pSubform); |
103 void DefineJsClass(); | 103 void DefineJsClass(); |
104 void RemoveBuiltInObjs(CFXJSE_Context* pContext) const; | 104 void RemoveBuiltInObjs(CFXJSE_Context* pContext) const; |
105 | 105 |
106 CXFA_Document* m_pDocument; | 106 CXFA_Document* m_pDocument; |
107 std::unique_ptr<CFXJSE_Context> m_JsContext; | 107 std::unique_ptr<CFXJSE_Context> m_JsContext; |
108 v8::Isolate* m_pIsolate; | 108 v8::Isolate* m_pIsolate; |
109 CFXJSE_Class* m_pJsClass; | 109 CFXJSE_Class* m_pJsClass; |
110 XFA_SCRIPTLANGTYPE m_eScriptType; | 110 XFA_SCRIPTLANGTYPE m_eScriptType; |
111 std::map<CXFA_Object*, std::unique_ptr<CFXJSE_Value>> m_mapObjectToValue; | 111 std::map<CXFA_Object*, std::unique_ptr<CFXJSE_Value>> m_mapObjectToValue; |
112 CFX_MapPtrTemplate<CXFA_Object*, CFXJSE_Context*> m_mapVariableToContext; | 112 std::map<CXFA_Object*, CFXJSE_Context*> m_mapVariableToContext; |
113 CXFA_EventParam m_eventParam; | 113 CXFA_EventParam m_eventParam; |
114 CXFA_NodeArray m_upObjectArray; | 114 CXFA_NodeArray m_upObjectArray; |
115 // CacheList holds the NodeList items so we can clean them up when we're done. | 115 // CacheList holds the NodeList items so we can clean them up when we're done. |
116 std::vector<std::unique_ptr<CXFA_NodeList>> m_CacheList; | 116 std::vector<std::unique_ptr<CXFA_NodeList>> m_CacheList; |
117 CXFA_NodeArray* m_pScriptNodeArray; | 117 CXFA_NodeArray* m_pScriptNodeArray; |
118 std::unique_ptr<CXFA_ResolveProcessor> m_ResolveProcessor; | 118 std::unique_ptr<CXFA_ResolveProcessor> m_ResolveProcessor; |
119 std::unique_ptr<CXFA_FM2JSContext> m_FM2JSContext; | 119 std::unique_ptr<CXFA_FM2JSContext> m_FM2JSContext; |
120 CXFA_Object* m_pThisObject; | 120 CXFA_Object* m_pThisObject; |
121 uint32_t m_dwBuiltInInFlags; | 121 uint32_t m_dwBuiltInInFlags; |
122 XFA_ATTRIBUTEENUM m_eRunAtType; | 122 XFA_ATTRIBUTEENUM m_eRunAtType; |
123 }; | 123 }; |
124 | 124 |
125 #endif // XFA_FXFA_PARSER_CXFA_SCRIPTCONTEXT_H_ | 125 #endif // XFA_FXFA_PARSER_CXFA_SCRIPTCONTEXT_H_ |
OLD | NEW |