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

Side by Side Diff: fxjs/include/fxjs_v8.h

Issue 2382723003: Move core/fxcrt/include to core/fxcrt (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 | « fxjs/include/cfxjse_value.h ('k') | fxjs/include/fxjse.h » ('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 // FXJS_V8 is a layer that makes it easier to define native objects in V8, but 7 // FXJS_V8 is a layer that makes it easier to define native objects in V8, but
8 // has no knowledge of PDF-specific native objects. It could in theory be used 8 // has no knowledge of PDF-specific native objects. It could in theory be used
9 // to implement other sets of native objects. 9 // to implement other sets of native objects.
10 10
11 // PDFium code should include this file rather than including V8 headers 11 // PDFium code should include this file rather than including V8 headers
12 // directly. 12 // directly.
13 13
14 #ifndef FXJS_INCLUDE_FXJS_V8_H_ 14 #ifndef FXJS_INCLUDE_FXJS_V8_H_
15 #define FXJS_INCLUDE_FXJS_V8_H_ 15 #define FXJS_INCLUDE_FXJS_V8_H_
16 16
17 #include <v8-util.h> 17 #include <v8-util.h>
18 #include <v8.h> 18 #include <v8.h>
19 19
20 #include <map> 20 #include <map>
21 #include <memory> 21 #include <memory>
22 #include <vector> 22 #include <vector>
23 23
24 #include "core/fxcrt/include/fx_string.h" 24 #include "core/fxcrt/fx_string.h"
25 #ifdef PDF_ENABLE_XFA 25 #ifdef PDF_ENABLE_XFA
26 // Header for CFXJSE_RuntimeData. FXJS_V8 doesn't interpret this class, 26 // Header for CFXJSE_RuntimeData. FXJS_V8 doesn't interpret this class,
27 // it is just passed along to XFA. 27 // it is just passed along to XFA.
28 #include "fxjs/cfxjse_runtimedata.h" 28 #include "fxjs/cfxjse_runtimedata.h"
29 #endif // PDF_ENABLE_XFA 29 #endif // PDF_ENABLE_XFA
30 30
31 class CFXJS_Engine; 31 class CFXJS_Engine;
32 class CFXJS_ObjDefinition; 32 class CFXJS_ObjDefinition;
33 33
34 // FXJS_V8 places no restrictions on this class; it merely passes it 34 // FXJS_V8 places no restrictions on this class; it merely passes it
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 void SetIsolate(v8::Isolate* pIsolate) { m_isolate = pIsolate; } 253 void SetIsolate(v8::Isolate* pIsolate) { m_isolate = pIsolate; }
254 254
255 private: 255 private:
256 v8::Isolate* m_isolate; 256 v8::Isolate* m_isolate;
257 v8::Global<v8::Context> m_V8PersistentContext; 257 v8::Global<v8::Context> m_V8PersistentContext;
258 std::vector<v8::Global<v8::Object>*> m_StaticObjects; 258 std::vector<v8::Global<v8::Object>*> m_StaticObjects;
259 std::map<CFX_WideString, v8::Global<v8::Array>> m_ConstArrays; 259 std::map<CFX_WideString, v8::Global<v8::Array>> m_ConstArrays;
260 }; 260 };
261 261
262 #endif // FXJS_INCLUDE_FXJS_V8_H_ 262 #endif // FXJS_INCLUDE_FXJS_V8_H_
OLDNEW
« no previous file with comments | « fxjs/include/cfxjse_value.h ('k') | fxjs/include/fxjse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698