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

Side by Side Diff: fpdfsdk/fsdk_baseform.cpp

Issue 1860063002: Remove core/include/fpdfdoc/fpdf_vt.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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 | « core/include/fpdfdoc/fpdf_vt.h ('k') | fpdfsdk/fxedit/DEPS » ('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 12 matching lines...) Expand all
23 #include "fpdfsdk/javascript/ijs_context.h" 23 #include "fpdfsdk/javascript/ijs_context.h"
24 #include "fpdfsdk/javascript/ijs_runtime.h" 24 #include "fpdfsdk/javascript/ijs_runtime.h"
25 #include "fpdfsdk/pdfwindow/PWL_Utils.h" 25 #include "fpdfsdk/pdfwindow/PWL_Utils.h"
26 26
27 #ifdef PDF_ENABLE_XFA 27 #ifdef PDF_ENABLE_XFA
28 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" 28 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h"
29 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" 29 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h"
30 #include "xfa/include/fxfa/xfa_ffwidget.h" 30 #include "xfa/include/fxfa/xfa_ffwidget.h"
31 #endif // PDF_ENABLE_XFA 31 #endif // PDF_ENABLE_XFA
32 32
33 #define IsFloatZero(f) ((f) < 0.01 && (f) > -0.01)
34 #define IsFloatBigger(fa, fb) ((fa) > (fb) && !IsFloatZero((fa) - (fb)))
35 #define IsFloatSmaller(fa, fb) ((fa) < (fb) && !IsFloatZero((fa) - (fb)))
36 #define IsFloatEqual(fa, fb) IsFloatZero((fa) - (fb))
37
38 CPDFSDK_Widget::CPDFSDK_Widget(CPDF_Annot* pAnnot, 33 CPDFSDK_Widget::CPDFSDK_Widget(CPDF_Annot* pAnnot,
39 CPDFSDK_PageView* pPageView, 34 CPDFSDK_PageView* pPageView,
40 CPDFSDK_InterForm* pInterForm) 35 CPDFSDK_InterForm* pInterForm)
41 : CPDFSDK_BAAnnot(pAnnot, pPageView), 36 : CPDFSDK_BAAnnot(pAnnot, pPageView),
42 m_pInterForm(pInterForm), 37 m_pInterForm(pInterForm),
43 m_nAppAge(0), 38 m_nAppAge(0),
44 m_nValueAge(0) 39 m_nValueAge(0)
45 #ifdef PDF_ENABLE_XFA 40 #ifdef PDF_ENABLE_XFA
46 , 41 ,
47 m_hMixXFAWidget(NULL), 42 m_hMixXFAWidget(NULL),
(...skipping 2781 matching lines...) Expand 10 before | Expand all | Expand 10 after
2829 break; 2824 break;
2830 } 2825 }
2831 } 2826 }
2832 } 2827 }
2833 2828
2834 CFX_FloatRect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) { 2829 CFX_FloatRect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) {
2835 CFX_FloatRect rcAnnot; 2830 CFX_FloatRect rcAnnot;
2836 pAnnot->GetPDFAnnot()->GetRect(rcAnnot); 2831 pAnnot->GetPDFAnnot()->GetRect(rcAnnot);
2837 return rcAnnot; 2832 return rcAnnot;
2838 } 2833 }
OLDNEW
« no previous file with comments | « core/include/fpdfdoc/fpdf_vt.h ('k') | fpdfsdk/fxedit/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698