| OLD | NEW | 
|---|
| 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 FPDFSDK_JAVASCRIPT_IJS_RUNTIME_H_ | 7 #ifndef FPDFSDK_JAVASCRIPT_IJS_RUNTIME_H_ | 
| 8 #define FPDFSDK_JAVASCRIPT_IJS_RUNTIME_H_ | 8 #define FPDFSDK_JAVASCRIPT_IJS_RUNTIME_H_ | 
| 9 | 9 | 
| 10 #include "core/fxcrt/include/fx_string.h" | 10 #include "core/fxcrt/include/fx_string.h" | 
| 11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/include/fx_system.h" | 
| 12 | 12 | 
| 13 #ifdef PDF_ENABLE_XFA | 13 #ifdef PDF_ENABLE_XFA | 
| 14 #include "fxjse/include/fxjse.h" | 14 #include "fxjs/include/fxjse.h" | 
| 15 #endif  // PDF_ENABLE_XFA | 15 #endif  // PDF_ENABLE_XFA | 
| 16 | 16 | 
| 17 class CPDFDoc_Environment; | 17 class CPDFDoc_Environment; | 
| 18 class CPDFSDK_Document; | 18 class CPDFSDK_Document; | 
| 19 class IJS_Context; | 19 class IJS_Context; | 
| 20 | 20 | 
| 21 // Owns the FJXS objects needed to actually execute JS. | 21 // Owns the FJXS objects needed to actually execute JS. | 
| 22 class IJS_Runtime { | 22 class IJS_Runtime { | 
| 23  public: | 23  public: | 
| 24   static void Initialize(unsigned int slot, void* isolate); | 24   static void Initialize(unsigned int slot, void* isolate); | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 38                                  CFXJSE_Value* pValue) = 0; | 38                                  CFXJSE_Value* pValue) = 0; | 
| 39   virtual FX_BOOL SetValueByName(const CFX_ByteStringC& utf8Name, | 39   virtual FX_BOOL SetValueByName(const CFX_ByteStringC& utf8Name, | 
| 40                                  CFXJSE_Value* pValue) = 0; | 40                                  CFXJSE_Value* pValue) = 0; | 
| 41 #endif  // PDF_ENABLE_XFA | 41 #endif  // PDF_ENABLE_XFA | 
| 42 | 42 | 
| 43  protected: | 43  protected: | 
| 44   IJS_Runtime() {} | 44   IJS_Runtime() {} | 
| 45 }; | 45 }; | 
| 46 | 46 | 
| 47 #endif  // FPDFSDK_JAVASCRIPT_IJS_RUNTIME_H_ | 47 #endif  // FPDFSDK_JAVASCRIPT_IJS_RUNTIME_H_ | 
| OLD | NEW | 
|---|