From 0ef0de55657db8a83372ad8eb22d84c5893afc4c Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 15 Jun 2015 16:44:14 -0700 Subject: Do some IWYU cleanups. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1176333002. --- fpdfsdk/src/fpdf_ext.cpp | 1 + fpdfsdk/src/fpdf_searchex.cpp | 12 ++++++++---- fpdfsdk/src/fpdftext.cpp | 3 ++- fpdfsdk/src/fpdfview.cpp | 1 + fpdfsdk/src/javascript/JS_GlobalData.cpp | 1 + fpdfsdk/src/pdfwindow/PWL_Edit.cpp | 1 + 6 files changed, 14 insertions(+), 5 deletions(-) (limited to 'fpdfsdk/src') diff --git a/fpdfsdk/src/fpdf_ext.cpp b/fpdfsdk/src/fpdf_ext.cpp index 1e68c6bd70..9afe9b5ea8 100644 --- a/fpdfsdk/src/fpdf_ext.cpp +++ b/fpdfsdk/src/fpdf_ext.cpp @@ -4,6 +4,7 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com +#include "../../core/include/fxcrt/fx_xml.h" #include "../../public/fpdf_ext.h" #include "../include/fsdk_define.h" diff --git a/fpdfsdk/src/fpdf_searchex.cpp b/fpdfsdk/src/fpdf_searchex.cpp index d63f8fff46..e012d30590 100644 --- a/fpdfsdk/src/fpdf_searchex.cpp +++ b/fpdfsdk/src/fpdf_searchex.cpp @@ -5,10 +5,14 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "../../public/fpdf_searchex.h" -#include "../include/fsdk_define.h" -DLLEXPORT int STDCALL FPDFText_GetCharIndexFromTextIndex(FPDF_TEXTPAGE text_page, int nTextIndex) +#include "../../core/include/fpdftext/fpdf_text.h" + +DLLEXPORT int STDCALL FPDFText_GetCharIndexFromTextIndex( + FPDF_TEXTPAGE text_page, + int nTextIndex) { - if(!text_page) return -1; - return ((IPDF_TextPage*)text_page)->CharIndexFromTextIndex(nTextIndex); + if (!text_page) + return -1; + return ((IPDF_TextPage*)text_page)->CharIndexFromTextIndex(nTextIndex); } diff --git a/fpdfsdk/src/fpdftext.cpp b/fpdfsdk/src/fpdftext.cpp index 1840247b95..aba24f4991 100644 --- a/fpdfsdk/src/fpdftext.cpp +++ b/fpdfsdk/src/fpdftext.cpp @@ -4,8 +4,9 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com +#include "../../core/include/fpdfdoc/fpdf_doc.h" +#include "../../core/include/fpdftext/fpdf_text.h" #include "../../public/fpdf_text.h" -#include "../include/fsdk_define.h" #ifdef _WIN32 #include diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp index 10bfc3db2c..48c6516d22 100644 --- a/fpdfsdk/src/fpdfview.cpp +++ b/fpdfsdk/src/fpdfview.cpp @@ -4,6 +4,7 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com +#include "../../core/include/fxcodec/fx_codec.h" #include "../../core/include/fxcrt/fx_safe_types.h" #include "../../public/fpdf_ext.h" #include "../../public/fpdf_progressive.h" diff --git a/fpdfsdk/src/javascript/JS_GlobalData.cpp b/fpdfsdk/src/javascript/JS_GlobalData.cpp index 2947a63344..2ba5c3bca5 100644 --- a/fpdfsdk/src/javascript/JS_GlobalData.cpp +++ b/fpdfsdk/src/javascript/JS_GlobalData.cpp @@ -4,6 +4,7 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com +#include "../../../core/include/fdrm/fx_crypt.h" #include "../../include/javascript/JavaScript.h" #include "../../include/javascript/IJavaScript.h" #include "../../include/javascript/JS_GlobalData.h" diff --git a/fpdfsdk/src/pdfwindow/PWL_Edit.cpp b/fpdfsdk/src/pdfwindow/PWL_Edit.cpp index 627e7a85d9..58d8a79da1 100644 --- a/fpdfsdk/src/pdfwindow/PWL_Edit.cpp +++ b/fpdfsdk/src/pdfwindow/PWL_Edit.cpp @@ -5,6 +5,7 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "../../../core/include/fxcrt/fx_safe_types.h" +#include "../../../core/include/fxcrt/fx_xml.h" #include "../../include/pdfwindow/PDFWindow.h" #include "../../include/pdfwindow/PWL_Caret.h" #include "../../include/pdfwindow/PWL_Edit.h" -- cgit v1.2.3