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

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

Issue 1572523002: XFA: Remove relative includes outside of xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 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
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 <memory> 9 #include <memory>
10 10
11 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" 11 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h"
12 #include "fpdfsdk/include/fsdk_actionhandler.h" 12 #include "fpdfsdk/include/fsdk_actionhandler.h"
13 #include "fpdfsdk/include/fsdk_baseannot.h" 13 #include "fpdfsdk/include/fsdk_baseannot.h"
14 #include "fpdfsdk/include/fsdk_define.h" 14 #include "fpdfsdk/include/fsdk_define.h"
15 #include "fpdfsdk/include/fsdk_mgr.h" 15 #include "fpdfsdk/include/fsdk_mgr.h"
16 #include "fpdfsdk/include/javascript/IJavaScript.h" 16 #include "fpdfsdk/include/javascript/IJavaScript.h"
17 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h" 17 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h"
18 18
19 #ifdef PDF_ENABLE_XFA 19 #ifdef PDF_ENABLE_XFA
20 #include "../include/fpdfxfa/fpdfxfa_doc.h" 20 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h"
21 #include "../include/fpdfxfa/fpdfxfa_util.h" 21 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h"
22 #endif // PDF_ENABLE_XFA 22 #endif // PDF_ENABLE_XFA
23 23
24 #define IsFloatZero(f) ((f) < 0.01 && (f) > -0.01) 24 #define IsFloatZero(f) ((f) < 0.01 && (f) > -0.01)
25 #define IsFloatBigger(fa, fb) ((fa) > (fb) && !IsFloatZero((fa) - (fb))) 25 #define IsFloatBigger(fa, fb) ((fa) > (fb) && !IsFloatZero((fa) - (fb)))
26 #define IsFloatSmaller(fa, fb) ((fa) < (fb) && !IsFloatZero((fa) - (fb))) 26 #define IsFloatSmaller(fa, fb) ((fa) < (fb) && !IsFloatZero((fa) - (fb)))
27 #define IsFloatEqual(fa, fb) IsFloatZero((fa) - (fb)) 27 #define IsFloatEqual(fa, fb) IsFloatZero((fa) - (fb))
28 28
29 CPDFSDK_Widget::CPDFSDK_Widget(CPDF_Annot* pAnnot, 29 CPDFSDK_Widget::CPDFSDK_Widget(CPDF_Annot* pAnnot,
30 CPDFSDK_PageView* pPageView, 30 CPDFSDK_PageView* pPageView,
31 CPDFSDK_InterForm* pInterForm) 31 CPDFSDK_InterForm* pInterForm)
(...skipping 2982 matching lines...) Expand 10 before | Expand all | Expand 10 after
3014 break; 3014 break;
3015 } 3015 }
3016 } 3016 }
3017 } 3017 }
3018 3018
3019 CPDF_Rect CBA_AnnotIterator::GetAnnotRect(CPDFSDK_Annot* pAnnot) { 3019 CPDF_Rect CBA_AnnotIterator::GetAnnotRect(CPDFSDK_Annot* pAnnot) {
3020 CPDF_Rect rcAnnot; 3020 CPDF_Rect rcAnnot;
3021 pAnnot->GetPDFAnnot()->GetRect(rcAnnot); 3021 pAnnot->GetPDFAnnot()->GetRect(rcAnnot);
3022 return rcAnnot; 3022 return rcAnnot;
3023 } 3023 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698