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_SRC_FXJSE_CONTEXT_H_ | 7 #ifndef XFA_SRC_FXJSE_CONTEXT_H_ |
8 #define XFA_SRC_FXJSE_CONTEXT_H_ | 8 #define XFA_SRC_FXJSE_CONTEXT_H_ |
9 | 9 |
| 10 #include "core/include/fxcrt/fx_basic.h" |
10 #include "v8/include/v8.h" | 11 #include "v8/include/v8.h" |
11 #include "xfa/include/fxjse/fxjse.h" | 12 #include "xfa/include/fxjse/fxjse.h" |
12 | 13 |
13 class CFXJSE_Class; | 14 class CFXJSE_Class; |
14 class CFXJSE_Value; | 15 class CFXJSE_Value; |
15 | 16 |
16 class CFXJSE_Context { | 17 class CFXJSE_Context { |
17 protected: | 18 protected: |
18 CFXJSE_Context(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} | 19 CFXJSE_Context(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} |
19 | 20 |
(...skipping 18 matching lines...) Expand all Loading... |
38 v8::Isolate* m_pIsolate; | 39 v8::Isolate* m_pIsolate; |
39 CFX_ArrayTemplate<CFXJSE_Class*> m_rgClasses; | 40 CFX_ArrayTemplate<CFXJSE_Class*> m_rgClasses; |
40 friend class CFXJSE_Class; | 41 friend class CFXJSE_Class; |
41 friend class CFXJSE_ScopeUtil_IsolateHandleContext; | 42 friend class CFXJSE_ScopeUtil_IsolateHandleContext; |
42 friend class CFXJSE_ScopeUtil_IsolateHandleRootOrNormalContext; | 43 friend class CFXJSE_ScopeUtil_IsolateHandleRootOrNormalContext; |
43 }; | 44 }; |
44 v8::Local<v8::Object> FXJSE_CreateReturnValue(v8::Isolate* pIsolate, | 45 v8::Local<v8::Object> FXJSE_CreateReturnValue(v8::Isolate* pIsolate, |
45 v8::TryCatch& trycatch); | 46 v8::TryCatch& trycatch); |
46 | 47 |
47 #endif // XFA_SRC_FXJSE_CONTEXT_H_ | 48 #endif // XFA_SRC_FXJSE_CONTEXT_H_ |
OLD | NEW |