OLD | NEW |
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 "fpdfsdk/include/fsdk_mgr.h" // For CPDFDoc_Environment. | 7 #include "fpdfsdk/include/fsdk_mgr.h" // For CPDFDoc_Environment. |
8 #include "fpdfsdk/include/javascript/IJavaScript.h" | 8 #include "fpdfsdk/include/javascript/IJavaScript.h" |
9 #include "third_party/base/nonstd_unique_ptr.h" | 9 #include "third_party/base/nonstd_unique_ptr.h" |
10 | 10 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 #ifdef PDF_ENABLE_XFA | 139 #ifdef PDF_ENABLE_XFA |
140 virtual FX_BOOL GetHValueByName(const CFX_ByteStringC&, | 140 virtual FX_BOOL GetHValueByName(const CFX_ByteStringC&, |
141 FXJSE_HVALUE) override { | 141 FXJSE_HVALUE) override { |
142 return FALSE; | 142 return FALSE; |
143 } | 143 } |
144 | 144 |
145 virtual FX_BOOL SetHValueByName(const CFX_ByteStringC&, | 145 virtual FX_BOOL SetHValueByName(const CFX_ByteStringC&, |
146 FXJSE_HVALUE) override { | 146 FXJSE_HVALUE) override { |
147 return FALSE; | 147 return FALSE; |
148 } | 148 } |
| 149 #endif // PDF_ENABLE_XFA |
149 | 150 |
150 #endif | |
151 int Execute(IJS_Context* cc, | 151 int Execute(IJS_Context* cc, |
152 const wchar_t* script, | 152 const wchar_t* script, |
153 CFX_WideString* info) override { | 153 CFX_WideString* info) override { |
154 return 0; | 154 return 0; |
155 } | 155 } |
156 | 156 |
157 protected: | 157 protected: |
158 CPDFSDK_Document* m_pDoc; | 158 CPDFSDK_Document* m_pDoc; |
159 nonstd::unique_ptr<CJS_ContextStub> m_pContext; | 159 nonstd::unique_ptr<CJS_ContextStub> m_pContext; |
160 }; | 160 }; |
161 | 161 |
162 // static | 162 // static |
163 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) { | 163 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) { |
164 } | 164 } |
165 | 165 |
166 // static | 166 // static |
167 IJS_Runtime* IJS_Runtime::Create(CPDFDoc_Environment* pEnv) { | 167 IJS_Runtime* IJS_Runtime::Create(CPDFDoc_Environment* pEnv) { |
168 return new CJS_RuntimeStub; | 168 return new CJS_RuntimeStub; |
169 } | 169 } |
OLD | NEW |