| 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 FPDFSDK_JAVASCRIPT_JS_OBJECT_H_ | 7 #ifndef FPDFSDK_JAVASCRIPT_JS_OBJECT_H_ |
| 8 #define FPDFSDK_JAVASCRIPT_JS_OBJECT_H_ | 8 #define FPDFSDK_JAVASCRIPT_JS_OBJECT_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #include "fpdfsdk/fsdk_define.h" | 13 #include "fpdfsdk/fsdk_define.h" |
| 14 #include "fpdfsdk/javascript/cjs_runtime.h" | 14 #include "fpdfsdk/javascript/cjs_runtime.h" |
| 15 #include "fxjs/include/fxjs_v8.h" | 15 #include "fxjs/fxjs_v8.h" |
| 16 | 16 |
| 17 class CJS_Context; | 17 class CJS_Context; |
| 18 class CJS_Object; | 18 class CJS_Object; |
| 19 class CPDFSDK_Environment; | 19 class CPDFSDK_Environment; |
| 20 | 20 |
| 21 class CJS_EmbedObj { | 21 class CJS_EmbedObj { |
| 22 public: | 22 public: |
| 23 explicit CJS_EmbedObj(CJS_Object* pJSObject); | 23 explicit CJS_EmbedObj(CJS_Object* pJSObject); |
| 24 virtual ~CJS_EmbedObj(); | 24 virtual ~CJS_EmbedObj(); |
| 25 | 25 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 49 v8::Isolate* GetIsolate() const { return m_pIsolate; } | 49 v8::Isolate* GetIsolate() const { return m_pIsolate; } |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 std::unique_ptr<CJS_EmbedObj> m_pEmbedObj; | 52 std::unique_ptr<CJS_EmbedObj> m_pEmbedObj; |
| 53 v8::Global<v8::Object> m_pV8Object; | 53 v8::Global<v8::Object> m_pV8Object; |
| 54 v8::Isolate* m_pIsolate; | 54 v8::Isolate* m_pIsolate; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 | 57 |
| 58 #endif // FPDFSDK_JAVASCRIPT_JS_OBJECT_H_ | 58 #endif // FPDFSDK_JAVASCRIPT_JS_OBJECT_H_ |
| OLD | NEW |