From 5e8b7356d68e35d7d631a2a917e651a4e7c73b65 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 5 Oct 2015 16:18:28 -0700 Subject: Remove JavaScript.h It merely includes a bunch of other .h files which are handled better since we fixed IWYU. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1385983002 . --- fpdfsdk/include/javascript/Field.h | 2 +- fpdfsdk/include/javascript/JavaScript.h | 24 ------------------------ fpdfsdk/include/javascript/color.h | 2 +- 3 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 fpdfsdk/include/javascript/JavaScript.h (limited to 'fpdfsdk/include/javascript') diff --git a/fpdfsdk/include/javascript/Field.h b/fpdfsdk/include/javascript/Field.h index 4a6f524f72..851bc4fc16 100644 --- a/fpdfsdk/include/javascript/Field.h +++ b/fpdfsdk/include/javascript/Field.h @@ -9,7 +9,7 @@ #include // For std::wstring. -// TODO(tsepez): include PWL_Wnd.h for PWL_Color after fixing its IWYU. +#include "../pdfwindow/PWL_Wnd.h" // For CPWL_Color. #include "JS_Define.h" class Document; diff --git a/fpdfsdk/include/javascript/JavaScript.h b/fpdfsdk/include/javascript/JavaScript.h deleted file mode 100644 index 655aca07d6..0000000000 --- a/fpdfsdk/include/javascript/JavaScript.h +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2014 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#ifndef FPDFSDK_INCLUDE_JAVASCRIPT_JAVASCRIPT_H_ -#define FPDFSDK_INCLUDE_JAVASCRIPT_JAVASCRIPT_H_ - -#include -#include - -#include "../../../core/include/fpdfapi/fpdf_module.h" -#include "../../../core/include/fpdfapi/fpdf_pageobj.h" -#include "../../../core/include/fpdfapi/fpdf_serial.h" -#include "../../../core/include/fpdfdoc/fpdf_doc.h" -#include "../../../core/include/fpdfdoc/fpdf_vt.h" -#include "../fsdk_mgr.h" -#include "../fx_systemhandler.h" -#include "../fxedit/fx_edit.h" -#include "../jsapi/fxjs_v8.h" -#include "../pdfwindow/IPDFWindow.h" - -#endif // FPDFSDK_INCLUDE_JAVASCRIPT_JAVASCRIPT_H_ diff --git a/fpdfsdk/include/javascript/color.h b/fpdfsdk/include/javascript/color.h index 322c4c26fa..8008575a70 100644 --- a/fpdfsdk/include/javascript/color.h +++ b/fpdfsdk/include/javascript/color.h @@ -7,8 +7,8 @@ #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_COLOR_H_ #define FPDFSDK_INCLUDE_JAVASCRIPT_COLOR_H_ +#include "../pdfwindow/PWL_Wnd.h" // For CPWL_Color. #include "JS_Define.h" -// TODO(tsepez): include CPWL_Color.h once its own IWYU is fixed. class color : public CJS_EmbedObj { public: -- cgit v1.2.3