| 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 "core/fxcrt/include/fx_string.h" | 10 #include "core/fxcrt/include/fx_string.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 void OnScreen_OutView(FX_BOOL bModifier, | 112 void OnScreen_OutView(FX_BOOL bModifier, |
| 113 FX_BOOL bShift, | 113 FX_BOOL bShift, |
| 114 CPDFSDK_Annot* pScreen) override; | 114 CPDFSDK_Annot* pScreen) override; |
| 115 void OnBookmark_MouseUp(CPDF_Bookmark* pBookMark) override; | 115 void OnBookmark_MouseUp(CPDF_Bookmark* pBookMark) override; |
| 116 void OnLink_MouseUp(CPDFSDK_Document* pTarget) override; | 116 void OnLink_MouseUp(CPDFSDK_Document* pTarget) override; |
| 117 void OnMenu_Exec(CPDFSDK_Document* pTarget, | 117 void OnMenu_Exec(CPDFSDK_Document* pTarget, |
| 118 const CFX_WideString& strTargetName) override; | 118 const CFX_WideString& strTargetName) override; |
| 119 void OnBatchExec(CPDFSDK_Document* pTarget) override; | 119 void OnBatchExec(CPDFSDK_Document* pTarget) override; |
| 120 void OnConsole_Exec() override; | 120 void OnConsole_Exec() override; |
| 121 void OnExternal_Exec() override; | 121 void OnExternal_Exec() override; |
| 122 void EnableMessageBox(FX_BOOL bEnable) override { m_bMsgBoxEnable = bEnable; } | 122 void EnableMessageBox(FX_BOOL bEnable) override; |
| 123 | 123 |
| 124 FX_BOOL IsMsgBoxEnabled() const { return m_bMsgBoxEnable; } | 124 FX_BOOL IsMsgBoxEnabled() const { return m_bMsgBoxEnable; } |
| 125 CJS_Runtime* GetJSRuntime() const { return m_pRuntime; } |
| 126 CJS_EventHandler* GetEventHandler() const { return m_pEventHandler; } |
| 125 | 127 |
| 126 CPDFDoc_Environment* GetReaderApp(); | 128 CPDFDoc_Environment* GetReaderApp(); |
| 127 CJS_Runtime* GetJSRuntime() const { return m_pRuntime; } | |
| 128 CJS_EventHandler* GetEventHandler() const { return m_pEventHandler; } | |
| 129 CPDFSDK_Document* GetReaderDocument(); | 129 CPDFSDK_Document* GetReaderDocument(); |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 CJS_Runtime* m_pRuntime; | 132 CJS_Runtime* m_pRuntime; |
| 133 CJS_EventHandler* m_pEventHandler; | 133 CJS_EventHandler* m_pEventHandler; |
| 134 FX_BOOL m_bBusy; | 134 FX_BOOL m_bBusy; |
| 135 FX_BOOL m_bMsgBoxEnable; | 135 FX_BOOL m_bMsgBoxEnable; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 #endif // FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_ | 138 #endif // FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_ |
| OLD | NEW |