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 #include "fpdfsdk/javascript/cjs_context.h" | 7 #include "fpdfsdk/javascript/cjs_context.h" |
8 | 8 |
9 #include "fpdfsdk/javascript/JS_EventHandler.h" | 9 #include "fpdfsdk/javascript/JS_EventHandler.h" |
10 #include "fpdfsdk/javascript/cjs_runtime.h" | 10 #include "fpdfsdk/javascript/cjs_runtime.h" |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } | 261 } |
262 | 262 |
263 void CJS_Context::OnConsole_Exec() { | 263 void CJS_Context::OnConsole_Exec() { |
264 m_pEventHandler->OnConsole_Exec(); | 264 m_pEventHandler->OnConsole_Exec(); |
265 } | 265 } |
266 | 266 |
267 void CJS_Context::OnExternal_Exec() { | 267 void CJS_Context::OnExternal_Exec() { |
268 m_pEventHandler->OnExternal_Exec(); | 268 m_pEventHandler->OnExternal_Exec(); |
269 } | 269 } |
270 | 270 |
| 271 void CJS_Context::EnableMessageBox(FX_BOOL bEnable) { |
| 272 m_bMsgBoxEnable = bEnable; |
| 273 } |
| 274 |
271 void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget) { | 275 void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget) { |
272 m_pEventHandler->OnBatchExec(pTarget); | 276 m_pEventHandler->OnBatchExec(pTarget); |
273 } | 277 } |
274 | 278 |
275 void CJS_Context::OnMenu_Exec(CPDFSDK_Document* pTarget, | 279 void CJS_Context::OnMenu_Exec(CPDFSDK_Document* pTarget, |
276 const CFX_WideString& strTargetName) { | 280 const CFX_WideString& strTargetName) { |
277 m_pEventHandler->OnMenu_Exec(pTarget, strTargetName); | 281 m_pEventHandler->OnMenu_Exec(pTarget, strTargetName); |
278 } | 282 } |
OLD | NEW |