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 "xfa/fxfa/include/xfa_ffdochandler.h" | 7 #include "xfa/fxfa/include/xfa_ffdochandler.h" |
| 8 | 8 |
| 9 #include "xfa/fxfa/include/xfa_checksum.h" | 9 #include "xfa/fxfa/include/xfa_checksum.h" |
| 10 #include "xfa/fxfa/include/xfa_ffdoc.h" | 10 #include "xfa/fxfa/include/xfa_ffdoc.h" |
| 11 #include "xfa/fxfa/parser/xfa_script.h" | 11 #include "xfa/fxfa/parser/cxfa_scriptcontext.h" |
|
Wei Li
2016/07/19 21:51:54
xfa_resolvenode_rs.h is also needed
dsinclair
2016/07/20 13:20:49
Done.
| |
| 12 #include "xfa/fxfa/parser/xfa_script_imp.h" | |
| 13 | 12 |
| 14 CXFA_FFDocHandler::CXFA_FFDocHandler() {} | 13 CXFA_FFDocHandler::CXFA_FFDocHandler() {} |
| 15 | 14 |
| 16 CXFA_FFDocHandler::~CXFA_FFDocHandler() {} | 15 CXFA_FFDocHandler::~CXFA_FFDocHandler() {} |
| 17 | 16 |
| 18 CFXJSE_Value* CXFA_FFDocHandler::GetXFAScriptObject(CXFA_FFDoc* hDoc) { | 17 CFXJSE_Value* CXFA_FFDocHandler::GetXFAScriptObject(CXFA_FFDoc* hDoc) { |
| 19 CXFA_Document* pXFADoc = hDoc->GetXFADoc(); | 18 CXFA_Document* pXFADoc = hDoc->GetXFADoc(); |
| 20 if (!pXFADoc) | 19 if (!pXFADoc) |
| 21 return nullptr; | 20 return nullptr; |
| 22 | 21 |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 51 return FALSE; | 50 return FALSE; |
| 52 | 51 |
| 53 CXFA_ScriptContext* pScriptContext = pXFADoc->GetScriptContext(); | 52 CXFA_ScriptContext* pScriptContext = pXFADoc->GetScriptContext(); |
| 54 if (!pScriptContext) | 53 if (!pScriptContext) |
| 55 return FALSE; | 54 return FALSE; |
| 56 | 55 |
| 57 return pScriptContext->RunScript( | 56 return pScriptContext->RunScript( |
| 58 (XFA_SCRIPTLANGTYPE)eScriptType, wsScript, pRetValue, | 57 (XFA_SCRIPTLANGTYPE)eScriptType, wsScript, pRetValue, |
| 59 pThisValue ? CXFA_ScriptContext::ToObject(pThisValue, nullptr) : nullptr); | 58 pThisValue ? CXFA_ScriptContext::ToObject(pThisValue, nullptr) : nullptr); |
| 60 } | 59 } |
| OLD | NEW |