Chromium Code Reviews| 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_JS_CONTEXT_H_ | 7 #ifndef FPDFSDK_JAVASCRIPT_JS_CONTEXT_H_ |
|
Tom Sepez
2016/03/31 16:23:28
rename to cjs_context.h while we're at it?
dsinclair
2016/03/31 17:00:40
Done.
| |
| 8 #define FPDFSDK_JAVASCRIPT_JS_CONTEXT_H_ | 8 #define FPDFSDK_JAVASCRIPT_JS_CONTEXT_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 #include "fpdfsdk/include/javascript/IJavaScript.h" | 12 #include "fpdfsdk/javascript/ijs_context.h" |
| 13 | 13 |
| 14 class CJS_EventHandler; | 14 class CJS_EventHandler; |
| 15 class CJS_Runtime; | 15 class CJS_Runtime; |
| 16 class CPDFDoc_Environment; | |
| 16 | 17 |
| 17 class CJS_Context : public IJS_Context { | 18 class CJS_Context : public IJS_Context { |
| 18 public: | 19 public: |
| 19 explicit CJS_Context(CJS_Runtime* pRuntime); | 20 explicit CJS_Context(CJS_Runtime* pRuntime); |
| 20 ~CJS_Context() override; | 21 ~CJS_Context() override; |
| 21 | 22 |
| 22 // IJS_Context | 23 // IJS_Context |
| 23 FX_BOOL RunScript(const CFX_WideString& script, | 24 FX_BOOL RunScript(const CFX_WideString& script, |
| 24 CFX_WideString* info) override; | 25 CFX_WideString* info) override; |
| 25 void OnApp_Init() override; | 26 void OnApp_Init() override; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 CPDFSDK_Document* GetReaderDocument(); | 129 CPDFSDK_Document* GetReaderDocument(); |
| 129 | 130 |
| 130 private: | 131 private: |
| 131 CJS_Runtime* m_pRuntime; | 132 CJS_Runtime* m_pRuntime; |
| 132 CJS_EventHandler* m_pEventHandler; | 133 CJS_EventHandler* m_pEventHandler; |
| 133 FX_BOOL m_bBusy; | 134 FX_BOOL m_bBusy; |
| 134 FX_BOOL m_bMsgBoxEnable; | 135 FX_BOOL m_bMsgBoxEnable; |
| 135 }; | 136 }; |
| 136 | 137 |
| 137 #endif // FPDFSDK_JAVASCRIPT_JS_CONTEXT_H_ | 138 #endif // FPDFSDK_JAVASCRIPT_JS_CONTEXT_H_ |
| OLD | NEW |