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

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

Issue 1932513002: Replace CFX_PtrArray with type-safe CFX_ArrayTemplate, Part 2 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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
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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 return; 320 return;
321 } 321 }
322 XFA_ELEMENT iType = pNode->GetClassID(); 322 XFA_ELEMENT iType = pNode->GetClassID();
323 if (XFA_IsCreateWidget(iType)) { 323 if (XFA_IsCreateWidget(iType)) {
324 CXFA_WidgetAcc* pAcc = new CXFA_WidgetAcc(pDocView, pNode); 324 CXFA_WidgetAcc* pAcc = new CXFA_WidgetAcc(pDocView, pNode);
325 pNode->SetObject(XFA_ATTRIBUTE_WidgetData, pAcc, &gs_XFADeleteWidgetAcc); 325 pNode->SetObject(XFA_ATTRIBUTE_WidgetData, pAcc, &gs_XFADeleteWidgetAcc);
326 return; 326 return;
327 } 327 }
328 switch (iType) { 328 switch (iType) {
329 case XFA_ELEMENT_BindItems: 329 case XFA_ELEMENT_BindItems:
330 pDocView->m_bindItems.Add(pNode); 330 pDocView->m_BindItems.Add(pNode);
331 break; 331 break;
332 case XFA_ELEMENT_Validate: { 332 case XFA_ELEMENT_Validate: {
333 pNode->SetFlag(XFA_NODEFLAG_NeedsInitApp, false); 333 pNode->SetFlag(XFA_NODEFLAG_NeedsInitApp, false);
334 } break; 334 } break;
335 default: 335 default:
336 break; 336 break;
337 } 337 }
338 } 338 }
339 339
340 void CXFA_FFNotify::OnValueChanging(CXFA_Node* pSender, XFA_ATTRIBUTE eAttr) { 340 void CXFA_FFNotify::OnValueChanging(CXFA_Node* pSender, XFA_ATTRIBUTE eAttr) {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
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()->WidgetEvent(pWidget, pWidget->GetDataAcc(), 513 m_pDoc->GetDocProvider()->WidgetEvent(pWidget, pWidget->GetDataAcc(),
514 XFA_WIDGETEVENT_PreRemoved); 514 XFA_WIDGETEVENT_PreRemoved);
515 pWidget->AddInvalidateRect(nullptr); 515 pWidget->AddInvalidateRect(nullptr);
516 } 516 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698