| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_CONTEXT_H_ | 7 #ifndef FXJS_CFXJSE_CONTEXT_H_ |
| 8 #define FXJS_INCLUDE_CFXJSE_CONTEXT_H_ | 8 #define FXJS_CFXJSE_CONTEXT_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "core/fxcrt/fx_basic.h" | 13 #include "core/fxcrt/fx_basic.h" |
| 14 #include "fxjs/include/fxjse.h" | 14 #include "fxjs/fxjse.h" |
| 15 #include "v8/include/v8.h" | 15 #include "v8/include/v8.h" |
| 16 | 16 |
| 17 class CFXJSE_Class; | 17 class CFXJSE_Class; |
| 18 class CFXJSE_Value; | 18 class CFXJSE_Value; |
| 19 struct FXJSE_CLASS_DESCRIPTOR; | 19 struct FXJSE_CLASS_DESCRIPTOR; |
| 20 | 20 |
| 21 class CFXJSE_Context { | 21 class CFXJSE_Context { |
| 22 public: | 22 public: |
| 23 static CFXJSE_Context* Create( | 23 static CFXJSE_Context* Create( |
| 24 v8::Isolate* pIsolate, | 24 v8::Isolate* pIsolate, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 55 v8::Local<v8::Object> FXJSE_GetGlobalObjectFromContext( | 55 v8::Local<v8::Object> FXJSE_GetGlobalObjectFromContext( |
| 56 const v8::Local<v8::Context>& hContext); | 56 const v8::Local<v8::Context>& hContext); |
| 57 | 57 |
| 58 void FXJSE_UpdateObjectBinding(v8::Local<v8::Object>& hObject, | 58 void FXJSE_UpdateObjectBinding(v8::Local<v8::Object>& hObject, |
| 59 CFXJSE_HostObject* lpNewBinding = nullptr); | 59 CFXJSE_HostObject* lpNewBinding = nullptr); |
| 60 | 60 |
| 61 CFXJSE_HostObject* FXJSE_RetrieveObjectBinding( | 61 CFXJSE_HostObject* FXJSE_RetrieveObjectBinding( |
| 62 const v8::Local<v8::Object>& hJSObject, | 62 const v8::Local<v8::Object>& hJSObject, |
| 63 CFXJSE_Class* lpClass = nullptr); | 63 CFXJSE_Class* lpClass = nullptr); |
| 64 | 64 |
| 65 #endif // FXJS_INCLUDE_CFXJSE_CONTEXT_H_ | 65 #endif // FXJS_CFXJSE_CONTEXT_H_ |
| OLD | NEW |