Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: xfa/fxfa/app/xfa_ffnotify.cpp

Issue 2012253002: Remove FXJSE_HOBJECT and FXJSE_HVALUE for CFXJSE_Value* (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@fxjse_hclass
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/app/xfa_ffdochandler.cpp ('k') | xfa/fxfa/app/xfa_ffwidgetacc.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/app/xfa_ffnotify.h" 7 #include "xfa/fxfa/app/xfa_ffnotify.h"
8 8
9 #include "xfa/fxfa/app/xfa_ffbarcode.h" 9 #include "xfa/fxfa/app/xfa_ffbarcode.h"
10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h" 10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 if (!pDocView) { 194 if (!pDocView) {
195 return bRet; 195 return bRet;
196 } 196 }
197 CXFA_WidgetAcc* pWidgetAcc = 197 CXFA_WidgetAcc* pWidgetAcc =
198 static_cast<CXFA_WidgetAcc*>(pFormItem->GetWidgetData()); 198 static_cast<CXFA_WidgetAcc*>(pFormItem->GetWidgetData());
199 if (!pWidgetAcc) { 199 if (!pWidgetAcc) {
200 return bRet; 200 return bRet;
201 } 201 }
202 CXFA_EventParam EventParam; 202 CXFA_EventParam EventParam;
203 EventParam.m_eType = XFA_EVENT_Unknown; 203 EventParam.m_eType = XFA_EVENT_Unknown;
204 FXJSE_HVALUE pRetValue = NULL; 204 CFXJSE_Value* pRetValue = nullptr;
205 int32_t iRet = 205 int32_t iRet =
206 pWidgetAcc->ExecuteScript(CXFA_Script(pScript), &EventParam, &pRetValue); 206 pWidgetAcc->ExecuteScript(CXFA_Script(pScript), &EventParam, &pRetValue);
207 if (iRet == XFA_EVENTERROR_Success && pRetValue) { 207 if (iRet == XFA_EVENTERROR_Success && pRetValue) {
208 bRet = FXJSE_Value_ToBoolean(pRetValue); 208 bRet = FXJSE_Value_ToBoolean(pRetValue);
209 FXJSE_Value_Release(pRetValue); 209 FXJSE_Value_Release(pRetValue);
210 } 210 }
211 return bRet; 211 return bRet;
212 } 212 }
213 int32_t CXFA_FFNotify::ExecEventByDeepFirst(CXFA_Node* pFormNode, 213 int32_t CXFA_FFNotify::ExecEventByDeepFirst(CXFA_Node* pFormNode,
214 XFA_EVENTTYPE eEventType, 214 XFA_EVENTTYPE eEventType,
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 return; 505 return;
506 506
507 CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pSender); 507 CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pSender);
508 if (!pWidget) 508 if (!pWidget)
509 return; 509 return;
510 510
511 pDocView->DeleteLayoutItem(pWidget); 511 pDocView->DeleteLayoutItem(pWidget);
512 m_pDoc->GetDocProvider()->WidgetPreRemove(pWidget, pWidget->GetDataAcc()); 512 m_pDoc->GetDocProvider()->WidgetPreRemove(pWidget, pWidget->GetDataAcc());
513 pWidget->AddInvalidateRect(nullptr); 513 pWidget->AddInvalidateRect(nullptr);
514 } 514 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffdochandler.cpp ('k') | xfa/fxfa/app/xfa_ffwidgetacc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698