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

Side by Side Diff: fpdfsdk/fsdk_baseannot.cpp

Issue 2206283004: Remove unused method CPDFSDK_BAAnnot::CreateFormFiller. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | fpdfsdk/include/fsdk_baseannot.h » ('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 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 819
820 if (pStreamDict) { 820 if (pStreamDict) {
821 pStreamDict->SetAtMatrix("Matrix", matrix); 821 pStreamDict->SetAtMatrix("Matrix", matrix);
822 pStreamDict->SetAtRect("BBox", rcBBox); 822 pStreamDict->SetAtRect("BBox", rcBBox);
823 } 823 }
824 824
825 pStream->SetData((uint8_t*)sContents.c_str(), sContents.GetLength(), FALSE, 825 pStream->SetData((uint8_t*)sContents.c_str(), sContents.GetLength(), FALSE,
826 FALSE); 826 FALSE);
827 } 827 }
828 828
829 FX_BOOL CPDFSDK_BAAnnot::CreateFormFiller() {
830 return TRUE;
831 }
832 FX_BOOL CPDFSDK_BAAnnot::IsVisible() const { 829 FX_BOOL CPDFSDK_BAAnnot::IsVisible() const {
833 uint32_t nFlags = GetFlags(); 830 uint32_t nFlags = GetFlags();
834 return !((nFlags & ANNOTFLAG_INVISIBLE) || (nFlags & ANNOTFLAG_HIDDEN) || 831 return !((nFlags & ANNOTFLAG_INVISIBLE) || (nFlags & ANNOTFLAG_HIDDEN) ||
835 (nFlags & ANNOTFLAG_NOVIEW)); 832 (nFlags & ANNOTFLAG_NOVIEW));
836 } 833 }
837 834
838 CPDF_Action CPDFSDK_BAAnnot::GetAction() const { 835 CPDF_Action CPDFSDK_BAAnnot::GetAction() const {
839 return CPDF_Action(m_pAnnot->GetAnnotDict()->GetDictBy("A")); 836 return CPDF_Action(m_pAnnot->GetAnnotDict()->GetDictBy("A"));
840 } 837 }
841 838
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 return m_pPageView ? m_pPageView->GetPDFPage() : nullptr; 897 return m_pPageView ? m_pPageView->GetPDFPage() : nullptr;
901 } 898 }
902 899
903 #ifdef PDF_ENABLE_XFA 900 #ifdef PDF_ENABLE_XFA
904 901
905 CPDFXFA_Page* CPDFSDK_Annot::GetPDFXFAPage() { 902 CPDFXFA_Page* CPDFSDK_Annot::GetPDFXFAPage() {
906 return m_pPageView ? m_pPageView->GetPDFXFAPage() : nullptr; 903 return m_pPageView ? m_pPageView->GetPDFXFAPage() : nullptr;
907 } 904 }
908 905
909 #endif // PDF_ENABLE_XFA 906 #endif // PDF_ENABLE_XFA
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/include/fsdk_baseannot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698