| 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 "../../../foxitlib.h" | 7 #include "../../../foxitlib.h" |
| 8 #include "../common/xfa_utils.h" | 8 #include "../common/xfa_utils.h" |
| 9 #include "../common/xfa_object.h" | 9 #include "../common/xfa_object.h" |
| 10 #include "../common/xfa_document.h" | 10 #include "../common/xfa_document.h" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 return; | 299 return; |
| 300 } | 300 } |
| 301 pNode = (CXFA_Node*)resoveNodeRS.nodes[0]; | 301 pNode = (CXFA_Node*)resoveNodeRS.nodes[0]; |
| 302 } | 302 } |
| 303 FXJSE_Value_Release(hValue); | 303 FXJSE_Value_Release(hValue); |
| 304 } | 304 } |
| 305 IXFA_DocLayout* pDocLayout = m_pDocument->GetDocLayout(); | 305 IXFA_DocLayout* pDocLayout = m_pDocument->GetDocLayout(); |
| 306 if (!pDocLayout) { | 306 if (!pDocLayout) { |
| 307 return; | 307 return; |
| 308 } | 308 } |
| 309 XFA_HWIDGET hWidget = pNotify->GetHWidget(pDocLayout->GetLayoutItem(pNode)); | 309 IXFA_Widget* hWidget = pNotify->GetHWidget(pDocLayout->GetLayoutItem(pNode))
; |
| 310 if (!hWidget) { | 310 if (!hWidget) { |
| 311 return; | 311 return; |
| 312 } | 312 } |
| 313 pNotify->GetDocProvider()->SetFocusWidget(pNotify->GetHDOC(), hWidget); | 313 pNotify->GetDocProvider()->SetFocusWidget(pNotify->GetHDOC(), hWidget); |
| 314 pNotify->OpenDropDownList(hWidget); | 314 pNotify->OpenDropDownList(hWidget); |
| 315 } | 315 } |
| 316 void CScript_HostPseudoModel::Script_HostPseudoModel_Response(CFXJSE_Arguments*
pArguments) | 316 void CScript_HostPseudoModel::Script_HostPseudoModel_Response(CFXJSE_Arguments*
pArguments) |
| 317 { | 317 { |
| 318 FX_INT32 iLength = pArguments->GetLength(); | 318 FX_INT32 iLength = pArguments->GetLength(); |
| 319 if (iLength < 1 || iLength > 4) { | 319 if (iLength < 1 || iLength > 4) { |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 IXFA_Notify* pNotify = m_pDocument->GetParser()->GetNotify(); | 745 IXFA_Notify* pNotify = m_pDocument->GetParser()->GetNotify(); |
| 746 if (!pNotify) { | 746 if (!pNotify) { |
| 747 return; | 747 return; |
| 748 } | 748 } |
| 749 CFX_WideString wsDataTime = pNotify->GetCurrentDateTime(); | 749 CFX_WideString wsDataTime = pNotify->GetCurrentDateTime(); |
| 750 FXJSE_HVALUE hValue = pArguments->GetReturnValue(); | 750 FXJSE_HVALUE hValue = pArguments->GetReturnValue(); |
| 751 if (hValue) { | 751 if (hValue) { |
| 752 FXJSE_Value_SetUTF8String(hValue, FX_UTF8Encode(wsDataTime)); | 752 FXJSE_Value_SetUTF8String(hValue, FX_UTF8Encode(wsDataTime)); |
| 753 } | 753 } |
| 754 } | 754 } |
| OLD | NEW |