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 FXJS_INCLUDE_CFXJSE_VALUE_H_ | 7 #ifndef FXJS_CFXJSE_VALUE_H_ |
8 #define FXJS_INCLUDE_CFXJSE_VALUE_H_ | 8 #define FXJS_CFXJSE_VALUE_H_ |
9 | |
10 #include "v8/include/v8.h" | |
11 | 9 |
12 #include "core/fxcrt/fx_string.h" | 10 #include "core/fxcrt/fx_string.h" |
13 #include "core/fxcrt/fx_system.h" | 11 #include "core/fxcrt/fx_system.h" |
14 #include "fxjs/cfxjse_isolatetracker.h" | 12 #include "fxjs/cfxjse_isolatetracker.h" |
15 #include "fxjs/cfxjse_runtimedata.h" | 13 #include "fxjs/cfxjse_runtimedata.h" |
| 14 #include "v8/include/v8.h" |
16 | 15 |
17 class CFXJSE_Class; | 16 class CFXJSE_Class; |
18 class CFXJSE_HostObject; | 17 class CFXJSE_HostObject; |
19 | 18 |
20 class CFXJSE_Value { | 19 class CFXJSE_Value { |
21 public: | 20 public: |
22 explicit CFXJSE_Value(v8::Isolate* pIsolate); | 21 explicit CFXJSE_Value(v8::Isolate* pIsolate); |
23 ~CFXJSE_Value(); | 22 ~CFXJSE_Value(); |
24 | 23 |
25 FX_BOOL IsUndefined() const; | 24 FX_BOOL IsUndefined() const; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 friend class CFXJSE_Context; | 91 friend class CFXJSE_Context; |
93 | 92 |
94 CFXJSE_Value(); | 93 CFXJSE_Value(); |
95 CFXJSE_Value(const CFXJSE_Value&); | 94 CFXJSE_Value(const CFXJSE_Value&); |
96 CFXJSE_Value& operator=(const CFXJSE_Value&); | 95 CFXJSE_Value& operator=(const CFXJSE_Value&); |
97 | 96 |
98 v8::Isolate* m_pIsolate; | 97 v8::Isolate* m_pIsolate; |
99 v8::Global<v8::Value> m_hValue; | 98 v8::Global<v8::Value> m_hValue; |
100 }; | 99 }; |
101 | 100 |
102 #endif // FXJS_INCLUDE_CFXJSE_VALUE_H_ | 101 #endif // FXJS_CFXJSE_VALUE_H_ |
OLD | NEW |