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

Side by Side Diff: fpdfsdk/javascript/cjs_runtime.cpp

Issue 2380713005: Move fxjs/include to fxjs (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 | « fpdfsdk/javascript/cjs_runtime.h ('k') | fpdfsdk/javascript/ijs_runtime.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 #include "fpdfsdk/javascript/cjs_runtime.h" 7 #include "fpdfsdk/javascript/cjs_runtime.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 15 matching lines...) Expand all
26 #include "fpdfsdk/javascript/console.h" 26 #include "fpdfsdk/javascript/console.h"
27 #include "fpdfsdk/javascript/event.h" 27 #include "fpdfsdk/javascript/event.h"
28 #include "fpdfsdk/javascript/global.h" 28 #include "fpdfsdk/javascript/global.h"
29 #include "fpdfsdk/javascript/report.h" 29 #include "fpdfsdk/javascript/report.h"
30 #include "fpdfsdk/javascript/util.h" 30 #include "fpdfsdk/javascript/util.h"
31 #include "public/fpdf_formfill.h" 31 #include "public/fpdf_formfill.h"
32 #include "third_party/base/stl_util.h" 32 #include "third_party/base/stl_util.h"
33 33
34 #ifdef PDF_ENABLE_XFA 34 #ifdef PDF_ENABLE_XFA
35 #include "fpdfsdk/fpdfxfa/fpdfxfa_app.h" 35 #include "fpdfsdk/fpdfxfa/fpdfxfa_app.h"
36 #include "fxjs/include/cfxjse_value.h" 36 #include "fxjs/cfxjse_value.h"
37 #endif // PDF_ENABLE_XFA 37 #endif // PDF_ENABLE_XFA
38 38
39 // static 39 // static
40 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) { 40 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) {
41 FXJS_Initialize(slot, reinterpret_cast<v8::Isolate*>(isolate)); 41 FXJS_Initialize(slot, reinterpret_cast<v8::Isolate*>(isolate));
42 } 42 }
43 43
44 // static 44 // static
45 void IJS_Runtime::Destroy() { 45 void IJS_Runtime::Destroy() {
46 FXJS_Release(); 46 FXJS_Release();
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // v8::Local<v8::Context>::New(GetIsolate(), m_context); 305 // v8::Local<v8::Context>::New(GetIsolate(), m_context);
306 v8::Local<v8::Value> propvalue = 306 v8::Local<v8::Value> propvalue =
307 v8::Local<v8::Value>::New(GetIsolate(), pValue->DirectGetValue()); 307 v8::Local<v8::Value>::New(GetIsolate(), pValue->DirectGetValue());
308 context->Global()->Set( 308 context->Global()->Set(
309 v8::String::NewFromUtf8(pIsolate, name, v8::String::kNormalString, 309 v8::String::NewFromUtf8(pIsolate, name, v8::String::kNormalString,
310 utf8Name.GetLength()), 310 utf8Name.GetLength()),
311 propvalue); 311 propvalue);
312 return TRUE; 312 return TRUE;
313 } 313 }
314 #endif 314 #endif
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/cjs_runtime.h ('k') | fpdfsdk/javascript/ijs_runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698