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

Side by Side Diff: fpdfsdk/src/fsdk_baseannot.cpp

Issue 1473503002: Introduce "underlying types" to abstract XFA differences. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: rebase past Jun's CL. Created 5 years 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 "core/include/fxcrt/fx_ext.h" 7 #include "core/include/fxcrt/fx_ext.h"
8 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" 8 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h"
9 #include "fpdfsdk/include/fsdk_baseannot.h" 9 #include "fpdfsdk/include/fsdk_baseannot.h"
10 #include "fpdfsdk/include/fsdk_define.h" 10 #include "fpdfsdk/include/fsdk_define.h"
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 void CPDFSDK_BAAnnot::Annot_OnDraw(CFX_RenderDevice* pDevice, 974 void CPDFSDK_BAAnnot::Annot_OnDraw(CFX_RenderDevice* pDevice,
975 CPDF_Matrix* pUser2Device, 975 CPDF_Matrix* pUser2Device,
976 CPDF_RenderOptions* pOptions) { 976 CPDF_RenderOptions* pOptions) {
977 m_pAnnot->GetAPForm(m_pPageView->GetPDFPage(), CPDF_Annot::Normal); 977 m_pAnnot->GetAPForm(m_pPageView->GetPDFPage(), CPDF_Annot::Normal);
978 m_pAnnot->DrawAppearance(m_pPageView->GetPDFPage(), pDevice, pUser2Device, 978 m_pAnnot->DrawAppearance(m_pPageView->GetPDFPage(), pDevice, pUser2Device,
979 CPDF_Annot::Normal, NULL); 979 CPDF_Annot::Normal, NULL);
980 980
981 return; 981 return;
982 } 982 }
983 983
984 UnderlyingPageType* CPDFSDK_Annot::GetUnderlyingPage() {
985 return GetPDFXFAPage();
986 }
987
984 CPDF_Page* CPDFSDK_Annot::GetPDFPage() { 988 CPDF_Page* CPDFSDK_Annot::GetPDFPage() {
985 if (m_pPageView) 989 if (m_pPageView)
986 return m_pPageView->GetPDFPage(); 990 return m_pPageView->GetPDFPage();
987 return NULL; 991 return NULL;
988 } 992 }
989 993
990 CPDFXFA_Page* CPDFSDK_Annot::GetPDFXFAPage() { 994 CPDFXFA_Page* CPDFSDK_Annot::GetPDFXFAPage() {
991 if (m_pPageView) 995 if (m_pPageView)
992 return m_pPageView->GetPDFXFAPage(); 996 return m_pPageView->GetPDFXFAPage();
993 return NULL; 997 return NULL;
994 } 998 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698