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/parser/xfa_script_eventpseudomodel.h" | 7 #include "xfa/fxfa/parser/xfa_script_eventpseudomodel.h" |
8 | 8 |
9 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h" | 9 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h" |
10 #include "xfa/fxfa/parser/xfa_docdata.h" | 10 #include "xfa/fxfa/parser/xfa_docdata.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 FX_BOOL& bValue, | 46 FX_BOOL& bValue, |
47 FX_BOOL bSetting) { | 47 FX_BOOL bSetting) { |
48 if (bSetting) { | 48 if (bSetting) { |
49 bValue = FXJSE_Value_ToBoolean(hValue); | 49 bValue = FXJSE_Value_ToBoolean(hValue); |
50 } else { | 50 } else { |
51 FXJSE_Value_SetBoolean(hValue, bValue); | 51 FXJSE_Value_SetBoolean(hValue, bValue); |
52 } | 52 } |
53 } | 53 } |
54 void CScript_EventPseudoModel::Script_EventPseudoModel_Property( | 54 void CScript_EventPseudoModel::Script_EventPseudoModel_Property( |
55 FXJSE_HVALUE hValue, | 55 FXJSE_HVALUE hValue, |
56 FX_DWORD dwFlag, | 56 uint32_t dwFlag, |
57 FX_BOOL bSetting) { | 57 FX_BOOL bSetting) { |
58 IXFA_ScriptContext* pScriptContext = m_pDocument->GetScriptContext(); | 58 IXFA_ScriptContext* pScriptContext = m_pDocument->GetScriptContext(); |
59 if (!pScriptContext) { | 59 if (!pScriptContext) { |
60 return; | 60 return; |
61 } | 61 } |
62 CXFA_EventParam* pEventParam = pScriptContext->GetEventParam(); | 62 CXFA_EventParam* pEventParam = pScriptContext->GetEventParam(); |
63 if (!pEventParam) { | 63 if (!pEventParam) { |
64 return; | 64 return; |
65 } | 65 } |
66 switch (dwFlag) { | 66 switch (dwFlag) { |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 IXFA_ScriptContext* pScriptContext = m_pDocument->GetScriptContext(); | 261 IXFA_ScriptContext* pScriptContext = m_pDocument->GetScriptContext(); |
262 if (!pScriptContext) { | 262 if (!pScriptContext) { |
263 return; | 263 return; |
264 } | 264 } |
265 CXFA_EventParam* pEventParam = pScriptContext->GetEventParam(); | 265 CXFA_EventParam* pEventParam = pScriptContext->GetEventParam(); |
266 if (!pEventParam) { | 266 if (!pEventParam) { |
267 return; | 267 return; |
268 } | 268 } |
269 pEventParam->Reset(); | 269 pEventParam->Reset(); |
270 } | 270 } |
OLD | NEW |