| 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 _JS_CONTEXT_H_ | 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_JS_CONTEXT_H_ |
| 8 #define _JS_CONTEXT_H_ | 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_JS_CONTEXT_H_ |
| 9 | 9 |
| 10 #include "../../../core/include/fxcrt/fx_system.h" | 10 #include "../../../core/include/fxcrt/fx_system.h" |
| 11 #include "../../../core/include/fxcrt/fx_string.h" | 11 #include "../../../core/include/fxcrt/fx_string.h" |
| 12 #include "IJavaScript.h" | 12 #include "IJavaScript.h" |
| 13 | 13 |
| 14 class CJS_EventHandler; | 14 class CJS_EventHandler; |
| 15 class CJS_Runtime; | 15 class CJS_Runtime; |
| 16 | 16 |
| 17 class CJS_Context : public IFXJS_Context | 17 class CJS_Context : public IFXJS_Context |
| 18 { | 18 { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 CPDFSDK_Document* GetReaderDocument(); | 87 CPDFSDK_Document* GetReaderDocument(); |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 CJS_Runtime* m_pRuntime; | 90 CJS_Runtime* m_pRuntime; |
| 91 CJS_EventHandler* m_pEventHandler; | 91 CJS_EventHandler* m_pEventHandler; |
| 92 | 92 |
| 93 FX_BOOL m_bBusy; | 93 FX_BOOL m_bBusy; |
| 94 FX_BOOL m_bMsgBoxEnable; | 94 FX_BOOL m_bMsgBoxEnable; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 // static CFX_WideString JSGetStringFromID(CJS_Context* pContext, UINT ID) | 97 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_JS_CONTEXT_H_ |
| 98 // { | |
| 99 // » ASSERT(pContext != NULL); | |
| 100 // | |
| 101 // » return JS_LoadString(pContext->GetReaderApp(), ID); | |
| 102 // } | |
| 103 | |
| 104 #endif //_JS_CONTEXT_H_ | |
| 105 | |
| OLD | NEW |