| 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_FM2JS_XFA_FM2JSCONTEXT_H_ | 7 #ifndef XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_ |
| 8 #define XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_ | 8 #define XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_ |
| 9 | 9 |
| 10 #include "fxjs/include/cfxjse_arguments.h" | 10 #include "fxjs/cfxjse_arguments.h" |
| 11 #include "fxjs/include/cfxjse_context.h" | 11 #include "fxjs/cfxjse_context.h" |
| 12 #include "xfa/fxfa/parser/xfa_resolvenode_rs.h" | 12 #include "xfa/fxfa/parser/xfa_resolvenode_rs.h" |
| 13 | 13 |
| 14 class CXFA_FM2JSContext : public CFXJSE_HostObject { | 14 class CXFA_FM2JSContext : public CFXJSE_HostObject { |
| 15 public: | 15 public: |
| 16 CXFA_FM2JSContext(v8::Isolate* pScriptIsolate, | 16 CXFA_FM2JSContext(v8::Isolate* pScriptIsolate, |
| 17 CFXJSE_Context* pScriptContext, | 17 CFXJSE_Context* pScriptContext, |
| 18 CXFA_Document* pDoc); | 18 CXFA_Document* pDoc); |
| 19 ~CXFA_FM2JSContext() override; | 19 ~CXFA_FM2JSContext() override; |
| 20 | 20 |
| 21 static void Abs(CFXJSE_Value* pThis, | 21 static void Abs(CFXJSE_Value* pThis, |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 CXFA_Document* GetDocument() const { return m_pDocument; } | 452 CXFA_Document* GetDocument() const { return m_pDocument; } |
| 453 void ThrowException(int32_t iStringID, ...); | 453 void ThrowException(int32_t iStringID, ...); |
| 454 | 454 |
| 455 v8::Isolate* m_pIsolate; | 455 v8::Isolate* m_pIsolate; |
| 456 CFXJSE_Class* m_pFMClass; | 456 CFXJSE_Class* m_pFMClass; |
| 457 std::unique_ptr<CFXJSE_Value> m_pValue; | 457 std::unique_ptr<CFXJSE_Value> m_pValue; |
| 458 CXFA_Document* const m_pDocument; | 458 CXFA_Document* const m_pDocument; |
| 459 }; | 459 }; |
| 460 | 460 |
| 461 #endif // XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_ | 461 #endif // XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_ |
| OLD | NEW |