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 #include "fpdfsdk/javascript/JS_Context.h" | 7 #include "fpdfsdk/javascript/JS_Context.h" |
|
Tom Sepez
2016/03/31 16:23:28
rename this file to cjs_context.cpp while we're at
dsinclair
2016/03/31 17:00:40
Done.
| |
| 8 | 8 |
| 9 #include "fpdfsdk/include/javascript/IJavaScript.h" | |
| 10 #include "fpdfsdk/javascript/JS_EventHandler.h" | 9 #include "fpdfsdk/javascript/JS_EventHandler.h" |
| 11 #include "fpdfsdk/javascript/JS_Runtime.h" | 10 #include "fpdfsdk/javascript/JS_Runtime.h" |
| 12 #include "fpdfsdk/javascript/resource.h" | 11 #include "fpdfsdk/javascript/resource.h" |
| 13 | 12 |
| 14 /* -------------------------- CJS_Context -------------------------- */ | 13 /* -------------------------- CJS_Context -------------------------- */ |
|
Tom Sepez
2016/03/31 16:23:28
nit: We should remove these perforations when we s
dsinclair
2016/03/31 17:00:40
Done.
| |
| 15 | 14 |
| 16 CJS_Context::CJS_Context(CJS_Runtime* pRuntime) | 15 CJS_Context::CJS_Context(CJS_Runtime* pRuntime) |
| 17 : m_pRuntime(pRuntime), m_bBusy(FALSE), m_bMsgBoxEnable(TRUE) { | 16 : m_pRuntime(pRuntime), m_bBusy(FALSE), m_bMsgBoxEnable(TRUE) { |
| 18 m_pEventHandler = new CJS_EventHandler(this); | 17 m_pEventHandler = new CJS_EventHandler(this); |
| 19 } | 18 } |
| 20 | 19 |
| 21 CJS_Context::~CJS_Context() { | 20 CJS_Context::~CJS_Context() { |
| 22 delete m_pEventHandler; | 21 delete m_pEventHandler; |
| 23 } | 22 } |
| 24 | 23 |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 275 } | 274 } |
| 276 | 275 |
| 277 void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget) { | 276 void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget) { |
| 278 m_pEventHandler->OnBatchExec(pTarget); | 277 m_pEventHandler->OnBatchExec(pTarget); |
| 279 } | 278 } |
| 280 | 279 |
| 281 void CJS_Context::OnMenu_Exec(CPDFSDK_Document* pTarget, | 280 void CJS_Context::OnMenu_Exec(CPDFSDK_Document* pTarget, |
| 282 const CFX_WideString& strTargetName) { | 281 const CFX_WideString& strTargetName) { |
| 283 m_pEventHandler->OnMenu_Exec(pTarget, strTargetName); | 282 m_pEventHandler->OnMenu_Exec(pTarget, strTargetName); |
| 284 } | 283 } |
| OLD | NEW |