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

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

Issue 2335243002: Split fsdk_mgr files apart. (Closed)
Patch Set: Sort headers Created 4 years, 3 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
OLDNEW
1 // Copyright 2015 PDFium Authors. All rights reserved. 1 // Copyright 2015 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 <memory> 7 #include <memory>
8 8
9 #include "fpdfsdk/include/fsdk_mgr.h"
10 #include "fpdfsdk/javascript/ijs_context.h" 9 #include "fpdfsdk/javascript/ijs_context.h"
11 #include "fpdfsdk/javascript/ijs_runtime.h" 10 #include "fpdfsdk/javascript/ijs_runtime.h"
12 11
13 class CJS_ContextStub final : public IJS_Context { 12 class CJS_ContextStub final : public IJS_Context {
14 public: 13 public:
15 CJS_ContextStub() {} 14 CJS_ContextStub() {}
16 ~CJS_ContextStub() override {} 15 ~CJS_ContextStub() override {}
17 16
18 // IJS_Context: 17 // IJS_Context:
19 FX_BOOL RunScript(const CFX_WideString& script, 18 FX_BOOL RunScript(const CFX_WideString& script,
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // static 159 // static
161 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) {} 160 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) {}
162 161
163 // static 162 // static
164 void IJS_Runtime::Destroy() {} 163 void IJS_Runtime::Destroy() {}
165 164
166 // static 165 // static
167 IJS_Runtime* IJS_Runtime::Create(CPDFDoc_Environment* pEnv) { 166 IJS_Runtime* IJS_Runtime::Create(CPDFDoc_Environment* pEnv) {
168 return new CJS_RuntimeStub; 167 return new CJS_RuntimeStub;
169 } 168 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698