| 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_JAVASCRIPT_CJS_CONTEXT_H_ | 7 #ifndef FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_ |
| 8 #define FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_ | 8 #define FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "core/fxcrt/include/fx_string.h" | 12 #include "core/fxcrt/fx_string.h" |
| 13 #include "core/fxcrt/include/fx_system.h" | 13 #include "core/fxcrt/fx_system.h" |
| 14 #include "fpdfsdk/javascript/ijs_context.h" | 14 #include "fpdfsdk/javascript/ijs_context.h" |
| 15 | 15 |
| 16 class CJS_EventHandler; | 16 class CJS_EventHandler; |
| 17 class CJS_Runtime; | 17 class CJS_Runtime; |
| 18 class CPDFSDK_Environment; | 18 class CPDFSDK_Environment; |
| 19 | 19 |
| 20 class CJS_Context : public IJS_Context { | 20 class CJS_Context : public IJS_Context { |
| 21 public: | 21 public: |
| 22 explicit CJS_Context(CJS_Runtime* pRuntime); | 22 explicit CJS_Context(CJS_Runtime* pRuntime); |
| 23 ~CJS_Context() override; | 23 ~CJS_Context() override; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 CPDFSDK_Environment* GetReaderEnv(); | 128 CPDFSDK_Environment* GetReaderEnv(); |
| 129 CPDFSDK_Document* GetReaderDocument(); | 129 CPDFSDK_Document* GetReaderDocument(); |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 CJS_Runtime* const m_pRuntime; | 132 CJS_Runtime* const m_pRuntime; |
| 133 std::unique_ptr<CJS_EventHandler> m_pEventHandler; | 133 std::unique_ptr<CJS_EventHandler> m_pEventHandler; |
| 134 FX_BOOL m_bBusy; | 134 FX_BOOL m_bBusy; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 #endif // FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_ | 137 #endif // FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_ |
| OLD | NEW |