| OLD | NEW |
| 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 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ | 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ |
| 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ | 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ |
| 9 | 9 |
| 10 #include "../../../core/include/fxcrt/fx_string.h" | 10 #include "../../../core/include/fxcrt/fx_string.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 virtual void SetReaderDocument(CPDFSDK_Document* pReaderDoc) = 0; | 140 virtual void SetReaderDocument(CPDFSDK_Document* pReaderDoc) = 0; |
| 141 virtual CPDFSDK_Document* GetReaderDocument() = 0; | 141 virtual CPDFSDK_Document* GetReaderDocument() = 0; |
| 142 | 142 |
| 143 protected: | 143 protected: |
| 144 virtual ~IFXJS_Runtime() {} | 144 virtual ~IFXJS_Runtime() {} |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 class CJS_RuntimeFactory { | 147 class CJS_RuntimeFactory { |
| 148 public: | 148 public: |
| 149 CJS_RuntimeFactory() : m_bInit(FALSE), m_nRef(0) {} | 149 CJS_RuntimeFactory() : m_bInit(false), m_nRef(0) {} |
| 150 ~CJS_RuntimeFactory(); | 150 ~CJS_RuntimeFactory(); |
| 151 | 151 |
| 152 IFXJS_Runtime* NewJSRuntime(CPDFDoc_Environment* pApp); | 152 IFXJS_Runtime* NewJSRuntime(CPDFDoc_Environment* pApp); |
| 153 void DeleteJSRuntime(IFXJS_Runtime* pRuntime); | 153 void DeleteJSRuntime(IFXJS_Runtime* pRuntime); |
| 154 void AddRef(); | 154 void AddRef(); |
| 155 void Release(); | 155 void Release(); |
| 156 | 156 |
| 157 private: | 157 private: |
| 158 FX_BOOL m_bInit; | 158 bool m_bInit; |
| 159 int m_nRef; | 159 int m_nRef; |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ | 162 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ |
| OLD | NEW |