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_FXJSE_CLASS_H_ | 7 #ifndef FXJSE_INCLUDE_CFXJSE_CLASS_H_ |
8 #define XFA_FXJSE_CLASS_H_ | 8 #define FXJSE_INCLUDE_CFXJSE_CLASS_H_ |
9 | 9 |
| 10 #include "fxjse/include/cfxjse_arguments.h" |
| 11 #include "fxjse/include/fxjse.h" |
10 #include "v8/include/v8.h" | 12 #include "v8/include/v8.h" |
11 #include "xfa/fxjse/cfxjse_arguments.h" | |
12 #include "xfa/fxjse/include/fxjse.h" | |
13 | 13 |
14 class CFXJSE_Context; | 14 class CFXJSE_Context; |
15 class CFXJSE_Value; | 15 class CFXJSE_Value; |
16 | 16 |
17 class CFXJSE_Class { | 17 class CFXJSE_Class { |
18 public: | 18 public: |
19 static CFXJSE_Class* Create(CFXJSE_Context* pContext, | 19 static CFXJSE_Class* Create(CFXJSE_Context* pContext, |
20 const FXJSE_CLASS_DESCRIPTOR* lpClassDefintion, | 20 const FXJSE_CLASS_DESCRIPTOR* lpClassDefintion, |
21 FX_BOOL bIsJSGlobal = FALSE); | 21 FX_BOOL bIsJSGlobal = FALSE); |
22 static CFXJSE_Class* GetClassFromContext(CFXJSE_Context* pContext, | 22 static CFXJSE_Class* GetClassFromContext(CFXJSE_Context* pContext, |
(...skipping 11 matching lines...) Expand all Loading... |
34 : m_lpClassDefinition(nullptr), m_pContext(lpContext) {} | 34 : m_lpClassDefinition(nullptr), m_pContext(lpContext) {} |
35 | 35 |
36 CFX_ByteString m_szClassName; | 36 CFX_ByteString m_szClassName; |
37 const FXJSE_CLASS_DESCRIPTOR* m_lpClassDefinition; | 37 const FXJSE_CLASS_DESCRIPTOR* m_lpClassDefinition; |
38 CFXJSE_Context* m_pContext; | 38 CFXJSE_Context* m_pContext; |
39 v8::Global<v8::FunctionTemplate> m_hTemplate; | 39 v8::Global<v8::FunctionTemplate> m_hTemplate; |
40 friend class CFXJSE_Context; | 40 friend class CFXJSE_Context; |
41 friend class CFXJSE_Value; | 41 friend class CFXJSE_Value; |
42 }; | 42 }; |
43 | 43 |
44 #endif // XFA_FXJSE_CLASS_H_ | 44 #endif // FXJSE_INCLUDE_CFXJSE_CLASS_H_ |
OLD | NEW |