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

Side by Side Diff: fpdfsdk/cpdfsdk_pageview.cpp

Issue 2385423004: Rename fpdfsdk/fpdfxfa files to match contents (Closed)
Patch Set: 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 | « fpdfsdk/cpdfsdk_interform.cpp ('k') | fpdfsdk/cpdfsdk_widget.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/cpdfsdk_pageview.h" 7 #include "fpdfsdk/cpdfsdk_pageview.h"
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
11 11
12 #include "core/fpdfapi/parser/cpdf_document.h" 12 #include "core/fpdfapi/parser/cpdf_document.h"
13 #include "core/fpdfapi/render/cpdf_renderoptions.h" 13 #include "core/fpdfapi/render/cpdf_renderoptions.h"
14 #include "core/fpdfdoc/cpdf_annotlist.h" 14 #include "core/fpdfdoc/cpdf_annotlist.h"
15 #include "core/fpdfdoc/cpdf_interform.h" 15 #include "core/fpdfdoc/cpdf_interform.h"
16 #include "fpdfsdk/cpdfsdk_annot.h" 16 #include "fpdfsdk/cpdfsdk_annot.h"
17 #include "fpdfsdk/cpdfsdk_annothandlermgr.h" 17 #include "fpdfsdk/cpdfsdk_annothandlermgr.h"
18 #include "fpdfsdk/cpdfsdk_annotiterator.h" 18 #include "fpdfsdk/cpdfsdk_annotiterator.h"
19 #include "fpdfsdk/cpdfsdk_environment.h" 19 #include "fpdfsdk/cpdfsdk_environment.h"
20 #include "fpdfsdk/cpdfsdk_interform.h" 20 #include "fpdfsdk/cpdfsdk_interform.h"
21 #include "third_party/base/ptr_util.h" 21 #include "third_party/base/ptr_util.h"
22 22
23 #ifdef PDF_ENABLE_XFA 23 #ifdef PDF_ENABLE_XFA
24 #include "fpdfsdk/fpdfxfa/fpdfxfa_page.h" 24 #include "fpdfsdk/fpdfxfa/cpdfxfa_page.h"
25 #include "xfa/fxfa/xfa_ffdocview.h" 25 #include "xfa/fxfa/xfa_ffdocview.h"
26 #include "xfa/fxfa/xfa_ffpageview.h" 26 #include "xfa/fxfa/xfa_ffpageview.h"
27 #include "xfa/fxfa/xfa_ffwidgethandler.h" 27 #include "xfa/fxfa/xfa_ffwidgethandler.h"
28 #include "xfa/fxfa/xfa_rendercontext.h" 28 #include "xfa/fxfa/xfa_rendercontext.h"
29 #include "xfa/fxgraphics/cfx_graphics.h" 29 #include "xfa/fxgraphics/cfx_graphics.h"
30 #endif // PDF_ENABLE_XFA 30 #endif // PDF_ENABLE_XFA
31 31
32 CPDFSDK_PageView::CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc, 32 CPDFSDK_PageView::CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc,
33 UnderlyingPageType* page) 33 UnderlyingPageType* page)
34 : m_page(page), 34 : m_page(page),
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 return pAnnot; 570 return pAnnot;
571 } 571 }
572 return nullptr; 572 return nullptr;
573 } 573 }
574 574
575 int CPDFSDK_PageView::GetPageIndexForStaticPDF() const { 575 int CPDFSDK_PageView::GetPageIndexForStaticPDF() const {
576 CPDF_Dictionary* pDict = GetPDFPage()->m_pFormDict; 576 CPDF_Dictionary* pDict = GetPDFPage()->m_pFormDict;
577 CPDF_Document* pDoc = m_pSDKDoc->GetPDFDocument(); 577 CPDF_Document* pDoc = m_pSDKDoc->GetPDFDocument();
578 return (pDoc && pDict) ? pDoc->GetPageIndex(pDict->GetObjNum()) : -1; 578 return (pDoc && pDict) ? pDoc->GetPageIndex(pDict->GetObjNum()) : -1;
579 } 579 }
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_interform.cpp ('k') | fpdfsdk/cpdfsdk_widget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698