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> |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 void OnLink_MouseUp(CPDFSDK_Document* pTarget) override; | 118 void OnLink_MouseUp(CPDFSDK_Document* pTarget) override; |
119 void OnMenu_Exec(CPDFSDK_Document* pTarget, | 119 void OnMenu_Exec(CPDFSDK_Document* pTarget, |
120 const CFX_WideString& strTargetName) override; | 120 const CFX_WideString& strTargetName) override; |
121 void OnBatchExec(CPDFSDK_Document* pTarget) override; | 121 void OnBatchExec(CPDFSDK_Document* pTarget) override; |
122 void OnConsole_Exec() override; | 122 void OnConsole_Exec() override; |
123 void OnExternal_Exec() override; | 123 void OnExternal_Exec() override; |
124 | 124 |
125 CJS_Runtime* GetJSRuntime() const { return m_pRuntime; } | 125 CJS_Runtime* GetJSRuntime() const { return m_pRuntime; } |
126 CJS_EventHandler* GetEventHandler() const { return m_pEventHandler.get(); } | 126 CJS_EventHandler* GetEventHandler() const { return m_pEventHandler.get(); } |
127 | 127 |
128 CPDFSDK_Environment* GetReaderApp(); | 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 |