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

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

Issue 2328573002: Split CPDFXFA_Document apart (Closed)
Patch Set: Created 4 years, 3 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 "fxjs/include/cfxjse_value.h" 9 #include "fxjs/include/cfxjse_value.h"
10 #include "xfa/fxfa/app/xfa_ffbarcode.h" 10 #include "xfa/fxfa/app/xfa_ffbarcode.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 static_cast<CXFA_WidgetAcc*>(pNode->GetWidgetData()); 231 static_cast<CXFA_WidgetAcc*>(pNode->GetWidgetData());
232 if (!pWidgetAcc) { 232 if (!pWidgetAcc) {
233 return; 233 return;
234 } 234 }
235 pDocView->AddCalculateWidgetAcc(pWidgetAcc); 235 pDocView->AddCalculateWidgetAcc(pWidgetAcc);
236 pDocView->AddValidateWidget(pWidgetAcc); 236 pDocView->AddValidateWidget(pWidgetAcc);
237 } 237 }
238 CXFA_FFDoc* CXFA_FFNotify::GetHDOC() { 238 CXFA_FFDoc* CXFA_FFNotify::GetHDOC() {
239 return m_pDoc; 239 return m_pDoc;
240 } 240 }
241 IXFA_DocProvider* CXFA_FFNotify::GetDocProvider() { 241 IXFA_DocEnvironment* CXFA_FFNotify::GetDocProvider() {
242 return m_pDoc->GetDocProvider(); 242 return m_pDoc->GetDocProvider();
243 } 243 }
244 IXFA_AppProvider* CXFA_FFNotify::GetAppProvider() { 244 IXFA_AppProvider* CXFA_FFNotify::GetAppProvider() {
245 return m_pDoc->GetApp()->GetAppProvider(); 245 return m_pDoc->GetApp()->GetAppProvider();
246 } 246 }
247 CXFA_FFWidgetHandler* CXFA_FFNotify::GetWidgetHandler() { 247 CXFA_FFWidgetHandler* CXFA_FFNotify::GetWidgetHandler() {
248 CXFA_FFDocView* pDocView = m_pDoc->GetDocView(); 248 CXFA_FFDocView* pDocView = m_pDoc->GetDocView();
249 return pDocView ? pDocView->GetWidgetHandler() : nullptr; 249 return pDocView ? pDocView->GetWidgetHandler() : nullptr;
250 } 250 }
251 CXFA_FFWidget* CXFA_FFNotify::GetHWidget(CXFA_LayoutItem* pLayoutItem) { 251 CXFA_FFWidget* CXFA_FFNotify::GetHWidget(CXFA_LayoutItem* pLayoutItem) {
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 return; 504 return;
505 505
506 CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pSender); 506 CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pSender);
507 if (!pWidget) 507 if (!pWidget)
508 return; 508 return;
509 509
510 pDocView->DeleteLayoutItem(pWidget); 510 pDocView->DeleteLayoutItem(pWidget);
511 m_pDoc->GetDocProvider()->WidgetPreRemove(pWidget, pWidget->GetDataAcc()); 511 m_pDoc->GetDocProvider()->WidgetPreRemove(pWidget, pWidget->GetDataAcc());
512 pWidget->AddInvalidateRect(nullptr); 512 pWidget->AddInvalidateRect(nullptr);
513 } 513 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698