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

Side by Side Diff: fpdfsdk/cpdfsdk_annothandlermgr.cpp

Issue 2357203003: Make the I in IFormFiller explicit (Closed)
Patch Set: Remove locals Created 4 years, 2 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 | « BUILD.gn ('k') | fpdfsdk/cpdfsdk_environment.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 "fpdfsdk/include/cpdfsdk_annothandlermgr.h" 7 #include "fpdfsdk/include/cpdfsdk_annothandlermgr.h"
8 8
9 #include "core/fpdfdoc/include/cpdf_annot.h" 9 #include "core/fpdfdoc/include/cpdf_annot.h"
10 #include "fpdfsdk/include/cba_annotiterator.h" 10 #include "fpdfsdk/include/cba_annotiterator.h"
(...skipping 13 matching lines...) Expand all
24 #include "xfa/fxfa/include/xfa_ffwidget.h" 24 #include "xfa/fxfa/include/xfa_ffwidget.h"
25 #endif // PDF_ENABLE_XFA 25 #endif // PDF_ENABLE_XFA
26 26
27 CPDFSDK_AnnotHandlerMgr::CPDFSDK_AnnotHandlerMgr(CPDFSDK_Environment* pApp) 27 CPDFSDK_AnnotHandlerMgr::CPDFSDK_AnnotHandlerMgr(CPDFSDK_Environment* pApp)
28 : m_pBAAnnotHandler(new CPDFSDK_BAAnnotHandler()), 28 : m_pBAAnnotHandler(new CPDFSDK_BAAnnotHandler()),
29 m_pWidgetHandler(new CPDFSDK_WidgetHandler(pApp)), 29 m_pWidgetHandler(new CPDFSDK_WidgetHandler(pApp)),
30 #ifdef PDF_ENABLE_XFA 30 #ifdef PDF_ENABLE_XFA
31 m_pXFAWidgetHandler(new CPDFSDK_XFAWidgetHandler(pApp)), 31 m_pXFAWidgetHandler(new CPDFSDK_XFAWidgetHandler(pApp)),
32 #endif // PDF_ENABLE_XFA 32 #endif // PDF_ENABLE_XFA
33 m_pApp(pApp) { 33 m_pApp(pApp) {
34 m_pWidgetHandler->SetFormFiller(m_pApp->GetIFormFiller()); 34 m_pWidgetHandler->SetFormFiller(m_pApp->GetInteractiveFormFiller());
35 } 35 }
36 36
37 CPDFSDK_AnnotHandlerMgr::~CPDFSDK_AnnotHandlerMgr() {} 37 CPDFSDK_AnnotHandlerMgr::~CPDFSDK_AnnotHandlerMgr() {}
38 38
39 CPDFSDK_Annot* CPDFSDK_AnnotHandlerMgr::NewAnnot(CPDF_Annot* pAnnot, 39 CPDFSDK_Annot* CPDFSDK_AnnotHandlerMgr::NewAnnot(CPDF_Annot* pAnnot,
40 CPDFSDK_PageView* pPageView) { 40 CPDFSDK_PageView* pPageView) {
41 ASSERT(pPageView); 41 ASSERT(pPageView);
42 return GetAnnotHandler(pAnnot->GetSubtype())->NewAnnot(pAnnot, pPageView); 42 return GetAnnotHandler(pAnnot->GetSubtype())->NewAnnot(pAnnot, pPageView);
43 } 43 }
44 44
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 bNext ? pWidgetIterator->MoveToNext() : pWidgetIterator->MoveToPrevious(); 299 bNext ? pWidgetIterator->MoveToNext() : pWidgetIterator->MoveToPrevious();
300 if (!hNextFocus && pSDKAnnot) 300 if (!hNextFocus && pSDKAnnot)
301 hNextFocus = pWidgetIterator->MoveToFirst(); 301 hNextFocus = pWidgetIterator->MoveToFirst();
302 302
303 return pPageView->GetAnnotByXFAWidget(hNextFocus); 303 return pPageView->GetAnnotByXFAWidget(hNextFocus);
304 #else // PDF_ENABLE_XFA 304 #else // PDF_ENABLE_XFA
305 CBA_AnnotIterator ai(pSDKAnnot->GetPageView(), CPDF_Annot::Subtype::WIDGET); 305 CBA_AnnotIterator ai(pSDKAnnot->GetPageView(), CPDF_Annot::Subtype::WIDGET);
306 return bNext ? ai.GetNextAnnot(pSDKAnnot) : ai.GetPrevAnnot(pSDKAnnot); 306 return bNext ? ai.GetNextAnnot(pSDKAnnot) : ai.GetPrevAnnot(pSDKAnnot);
307 #endif // PDF_ENABLE_XFA 307 #endif // PDF_ENABLE_XFA
308 } 308 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | fpdfsdk/cpdfsdk_environment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698