Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Side by Side Diff: xfa/fxjse/context.h

Issue 2045883004: Remove more FXJSE c-method wrappers. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxjse/class.cpp ('k') | xfa/fxjse/context.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_CONTEXT_H_ 7 #ifndef XFA_FXJSE_CONTEXT_H_
8 #define XFA_FXJSE_CONTEXT_H_ 8 #define XFA_FXJSE_CONTEXT_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 10 matching lines...) Expand all
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,
25 const FXJSE_CLASS_DESCRIPTOR* lpGlobalClass = nullptr, 25 const FXJSE_CLASS_DESCRIPTOR* lpGlobalClass = nullptr,
26 CFXJSE_HostObject* lpGlobalObject = nullptr); 26 CFXJSE_HostObject* lpGlobalObject = nullptr);
27 ~CFXJSE_Context(); 27 ~CFXJSE_Context();
28 28
29 V8_INLINE v8::Isolate* GetRuntime(void) { return m_pIsolate; } 29 V8_INLINE v8::Isolate* GetRuntime(void) { return m_pIsolate; }
30 void GetGlobalObject(CFXJSE_Value* pValue); 30 void GetGlobalObject(CFXJSE_Value* pValue);
31 void EnableCompatibleMode();
31 FX_BOOL ExecuteScript(const FX_CHAR* szScript, 32 FX_BOOL ExecuteScript(const FX_CHAR* szScript,
32 CFXJSE_Value* lpRetValue, 33 CFXJSE_Value* lpRetValue,
33 CFXJSE_Value* lpNewThisObject = nullptr); 34 CFXJSE_Value* lpNewThisObject = nullptr);
34 35
35 protected: 36 protected:
36 CFXJSE_Context(); 37 CFXJSE_Context();
37 CFXJSE_Context(const CFXJSE_Context&); 38 CFXJSE_Context(const CFXJSE_Context&);
38 explicit CFXJSE_Context(v8::Isolate* pIsolate); 39 explicit CFXJSE_Context(v8::Isolate* pIsolate);
39 CFXJSE_Context& operator=(const CFXJSE_Context&); 40 CFXJSE_Context& operator=(const CFXJSE_Context&);
40 41
(...skipping 12 matching lines...) Expand all
53 const v8::Local<v8::Context>& hContext); 54 const v8::Local<v8::Context>& hContext);
54 55
55 void FXJSE_UpdateObjectBinding(v8::Local<v8::Object>& hObject, 56 void FXJSE_UpdateObjectBinding(v8::Local<v8::Object>& hObject,
56 CFXJSE_HostObject* lpNewBinding = nullptr); 57 CFXJSE_HostObject* lpNewBinding = nullptr);
57 58
58 CFXJSE_HostObject* FXJSE_RetrieveObjectBinding( 59 CFXJSE_HostObject* FXJSE_RetrieveObjectBinding(
59 const v8::Local<v8::Object>& hJSObject, 60 const v8::Local<v8::Object>& hJSObject,
60 CFXJSE_Class* lpClass = nullptr); 61 CFXJSE_Class* lpClass = nullptr);
61 62
62 #endif // XFA_FXJSE_CONTEXT_H_ 63 #endif // XFA_FXJSE_CONTEXT_H_
OLDNEW
« no previous file with comments | « xfa/fxjse/class.cpp ('k') | xfa/fxjse/context.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698