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

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

Issue 2043153002: Remove various FXJSE Value methods. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
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 | « fpdfsdk/javascript/cjs_runtime.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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 static_cast<CXFA_WidgetAcc*>(pFormItem->GetWidgetData()); 199 static_cast<CXFA_WidgetAcc*>(pFormItem->GetWidgetData());
200 if (!pWidgetAcc) { 200 if (!pWidgetAcc) {
201 return bRet; 201 return bRet;
202 } 202 }
203 CXFA_EventParam EventParam; 203 CXFA_EventParam EventParam;
204 EventParam.m_eType = XFA_EVENT_Unknown; 204 EventParam.m_eType = XFA_EVENT_Unknown;
205 CFXJSE_Value* pRetValue = nullptr; 205 CFXJSE_Value* pRetValue = nullptr;
206 int32_t iRet = 206 int32_t iRet =
207 pWidgetAcc->ExecuteScript(CXFA_Script(pScript), &EventParam, &pRetValue); 207 pWidgetAcc->ExecuteScript(CXFA_Script(pScript), &EventParam, &pRetValue);
208 if (iRet == XFA_EVENTERROR_Success && pRetValue) { 208 if (iRet == XFA_EVENTERROR_Success && pRetValue) {
209 bRet = FXJSE_Value_ToBoolean(pRetValue); 209 bRet = pRetValue->ToBoolean();
210 delete pRetValue; 210 delete pRetValue;
211 } 211 }
212 return bRet; 212 return bRet;
213 } 213 }
214 int32_t CXFA_FFNotify::ExecEventByDeepFirst(CXFA_Node* pFormNode, 214 int32_t CXFA_FFNotify::ExecEventByDeepFirst(CXFA_Node* pFormNode,
215 XFA_EVENTTYPE eEventType, 215 XFA_EVENTTYPE eEventType,
216 FX_BOOL bIsFormReady, 216 FX_BOOL bIsFormReady,
217 FX_BOOL bRecursive, 217 FX_BOOL bRecursive,
218 CXFA_WidgetAcc* pExclude) { 218 CXFA_WidgetAcc* pExclude) {
219 CXFA_FFDocView* pDocView = m_pDoc->GetDocView(); 219 CXFA_FFDocView* pDocView = m_pDoc->GetDocView();
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 return; 506 return;
507 507
508 CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pSender); 508 CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pSender);
509 if (!pWidget) 509 if (!pWidget)
510 return; 510 return;
511 511
512 pDocView->DeleteLayoutItem(pWidget); 512 pDocView->DeleteLayoutItem(pWidget);
513 m_pDoc->GetDocProvider()->WidgetPreRemove(pWidget, pWidget->GetDataAcc()); 513 m_pDoc->GetDocProvider()->WidgetPreRemove(pWidget, pWidget->GetDataAcc());
514 pWidget->AddInvalidateRect(nullptr); 514 pWidget->AddInvalidateRect(nullptr);
515 } 515 }
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/cjs_runtime.cpp ('k') | xfa/fxfa/app/xfa_ffwidgetacc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698