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

Side by Side Diff: fpdfsdk/fsdk_baseform.cpp

Issue 1799773002: Move fpdfsdk/src up to fpdfsdk/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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/fsdk_baseannot.cpp ('k') | fpdfsdk/fsdk_baseform_embeddertest.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 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 "fpdfsdk/include/fsdk_baseform.h" 7 #include "fpdfsdk/include/fsdk_baseform.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after
1981 1981
1982 return TRUE; 1982 return TRUE;
1983 } 1983 }
1984 return FALSE; 1984 return FALSE;
1985 } 1985 }
1986 1986
1987 #ifdef PDF_ENABLE_XFA 1987 #ifdef PDF_ENABLE_XFA
1988 CPDFSDK_XFAWidget::CPDFSDK_XFAWidget(IXFA_Widget* pAnnot, 1988 CPDFSDK_XFAWidget::CPDFSDK_XFAWidget(IXFA_Widget* pAnnot,
1989 CPDFSDK_PageView* pPageView, 1989 CPDFSDK_PageView* pPageView,
1990 CPDFSDK_InterForm* pInterForm) 1990 CPDFSDK_InterForm* pInterForm)
1991 : CPDFSDK_Annot(pPageView), m_pInterForm(pInterForm), m_hXFAWidget(pAnnot) { 1991 : CPDFSDK_Annot(pPageView),
1992 } 1992 m_pInterForm(pInterForm),
1993 m_hXFAWidget(pAnnot) {}
1993 1994
1994 FX_BOOL CPDFSDK_XFAWidget::IsXFAField() { 1995 FX_BOOL CPDFSDK_XFAWidget::IsXFAField() {
1995 return TRUE; 1996 return TRUE;
1996 } 1997 }
1997 1998
1998 CFX_ByteString CPDFSDK_XFAWidget::GetType() const { 1999 CFX_ByteString CPDFSDK_XFAWidget::GetType() const {
1999 return FSDK_XFAWIDGET_TYPENAME; 2000 return FSDK_XFAWIDGET_TYPENAME;
2000 } 2001 }
2001 2002
2002 CFX_FloatRect CPDFSDK_XFAWidget::GetRect() const { 2003 CFX_FloatRect CPDFSDK_XFAWidget::GetRect() const {
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
2719 CPDF_Page* pPDFPage = m_pPageView->GetPDFPage(); 2720 CPDF_Page* pPDFPage = m_pPageView->GetPDFPage();
2720 CFX_ByteString sTabs = pPDFPage->m_pFormDict->GetStringBy("Tabs"); 2721 CFX_ByteString sTabs = pPDFPage->m_pFormDict->GetStringBy("Tabs");
2721 if (sTabs == "R") 2722 if (sTabs == "R")
2722 m_eTabOrder = ROW; 2723 m_eTabOrder = ROW;
2723 else if (sTabs == "C") 2724 else if (sTabs == "C")
2724 m_eTabOrder = COLUMN; 2725 m_eTabOrder = COLUMN;
2725 2726
2726 GenerateResults(); 2727 GenerateResults();
2727 } 2728 }
2728 2729
2729 CBA_AnnotIterator::~CBA_AnnotIterator() { 2730 CBA_AnnotIterator::~CBA_AnnotIterator() {}
2730 }
2731 2731
2732 CPDFSDK_Annot* CBA_AnnotIterator::GetFirstAnnot() { 2732 CPDFSDK_Annot* CBA_AnnotIterator::GetFirstAnnot() {
2733 return m_Annots.empty() ? nullptr : m_Annots.front(); 2733 return m_Annots.empty() ? nullptr : m_Annots.front();
2734 } 2734 }
2735 2735
2736 CPDFSDK_Annot* CBA_AnnotIterator::GetLastAnnot() { 2736 CPDFSDK_Annot* CBA_AnnotIterator::GetLastAnnot() {
2737 return m_Annots.empty() ? nullptr : m_Annots.back(); 2737 return m_Annots.empty() ? nullptr : m_Annots.back();
2738 } 2738 }
2739 2739
2740 CPDFSDK_Annot* CBA_AnnotIterator::GetNextAnnot(CPDFSDK_Annot* pAnnot) { 2740 CPDFSDK_Annot* CBA_AnnotIterator::GetNextAnnot(CPDFSDK_Annot* pAnnot) {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
2863 break; 2863 break;
2864 } 2864 }
2865 } 2865 }
2866 } 2866 }
2867 2867
2868 CFX_FloatRect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) { 2868 CFX_FloatRect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) {
2869 CFX_FloatRect rcAnnot; 2869 CFX_FloatRect rcAnnot;
2870 pAnnot->GetPDFAnnot()->GetRect(rcAnnot); 2870 pAnnot->GetPDFAnnot()->GetRect(rcAnnot);
2871 return rcAnnot; 2871 return rcAnnot;
2872 } 2872 }
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_baseannot.cpp ('k') | fpdfsdk/fsdk_baseform_embeddertest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698