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

Side by Side Diff: fxjs/cfxjse_context.h

Issue 2471353002: Remove FX_BOOL entirely. (Closed)
Patch Set: Fix nits now rather than later Created 4 years, 1 month 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 | « fxjs/cfxjse_class.cpp ('k') | fxjs/cfxjse_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 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_CFXJSE_CONTEXT_H_ 7 #ifndef FXJS_CFXJSE_CONTEXT_H_
8 #define FXJS_CFXJSE_CONTEXT_H_ 8 #define FXJS_CFXJSE_CONTEXT_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 12 matching lines...) Expand all
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 27
28 ~CFXJSE_Context(); 28 ~CFXJSE_Context();
29 29
30 v8::Isolate* GetRuntime() { return m_pIsolate; } 30 v8::Isolate* GetRuntime() { return m_pIsolate; }
31 std::unique_ptr<CFXJSE_Value> GetGlobalObject(); 31 std::unique_ptr<CFXJSE_Value> GetGlobalObject();
32 void EnableCompatibleMode(); 32 void EnableCompatibleMode();
33 FX_BOOL ExecuteScript(const FX_CHAR* szScript, 33 bool ExecuteScript(const FX_CHAR* szScript,
34 CFXJSE_Value* lpRetValue, 34 CFXJSE_Value* lpRetValue,
35 CFXJSE_Value* lpNewThisObject = nullptr); 35 CFXJSE_Value* lpNewThisObject = nullptr);
36 36
37 protected: 37 protected:
38 friend class CFXJSE_Class; 38 friend class CFXJSE_Class;
39 friend class CFXJSE_ScopeUtil_IsolateHandleContext; 39 friend class CFXJSE_ScopeUtil_IsolateHandleContext;
40 40
41 CFXJSE_Context(); 41 CFXJSE_Context();
42 CFXJSE_Context(const CFXJSE_Context&); 42 CFXJSE_Context(const CFXJSE_Context&);
43 explicit CFXJSE_Context(v8::Isolate* pIsolate); 43 explicit CFXJSE_Context(v8::Isolate* pIsolate);
44 44
45 CFXJSE_Context& operator=(const CFXJSE_Context&); 45 CFXJSE_Context& operator=(const CFXJSE_Context&);
(...skipping 10 matching lines...) Expand all
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_CFXJSE_CONTEXT_H_ 65 #endif // FXJS_CFXJSE_CONTEXT_H_
OLDNEW
« no previous file with comments | « fxjs/cfxjse_class.cpp ('k') | fxjs/cfxjse_context.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698