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 #include "fpdfsdk/javascript/JS_Object.h" | 7 #include "fpdfsdk/javascript/JS_Object.h" |
8 | 8 |
9 #include "fpdfsdk/include/fsdk_mgr.h" | |
10 #include "fpdfsdk/javascript/JS_Define.h" | 9 #include "fpdfsdk/javascript/JS_Define.h" |
11 #include "fpdfsdk/javascript/cjs_context.h" | 10 #include "fpdfsdk/javascript/cjs_context.h" |
12 | 11 |
13 CJS_EmbedObj::CJS_EmbedObj(CJS_Object* pJSObject) : m_pJSObject(pJSObject) {} | 12 CJS_EmbedObj::CJS_EmbedObj(CJS_Object* pJSObject) : m_pJSObject(pJSObject) {} |
14 | 13 |
15 CJS_EmbedObj::~CJS_EmbedObj() { | 14 CJS_EmbedObj::~CJS_EmbedObj() { |
16 } | 15 } |
17 | 16 |
18 void FreeObject(const v8::WeakCallbackInfo<CJS_Object>& data) { | 17 void FreeObject(const v8::WeakCallbackInfo<CJS_Object>& data) { |
19 CJS_Object* pJSObj = data.GetParameter(); | 18 CJS_Object* pJSObj = data.GetParameter(); |
(...skipping 20 matching lines...) Expand all Loading... |
40 v8::WeakCallbackType::kInternalFields); | 39 v8::WeakCallbackType::kInternalFields); |
41 } | 40 } |
42 | 41 |
43 void CJS_Object::Dispose() { | 42 void CJS_Object::Dispose() { |
44 m_pV8Object.Reset(); | 43 m_pV8Object.Reset(); |
45 } | 44 } |
46 | 45 |
47 void CJS_Object::InitInstance(IJS_Runtime* pIRuntime) {} | 46 void CJS_Object::InitInstance(IJS_Runtime* pIRuntime) {} |
48 | 47 |
49 void CJS_Object::ExitInstance() {} | 48 void CJS_Object::ExitInstance() {} |
OLD | NEW |