summaryrefslogtreecommitdiff
path: root/xfa/src/fxjse
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2016-02-29 15:03:18 -0500
committerDan Sinclair <dsinclair@chromium.org>2016-02-29 15:03:18 -0500
commitb36430115717af4ecfa573476714cecc73f3d1c3 (patch)
tree4d8f0e8c1d6c526036b635e7d220faaac0bba01c /xfa/src/fxjse
parentbf85bd7234e5fc0120315007dec085d741dcfb7a (diff)
downloadpdfium-b36430115717af4ecfa573476714cecc73f3d1c3.tar.xz
Remove foxitlib.h and foxitxfa.h and IWYU.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1746053003 .
Diffstat (limited to 'xfa/src/fxjse')
-rw-r--r--xfa/src/fxjse/src/class.cpp2
-rw-r--r--xfa/src/fxjse/src/class.h3
-rw-r--r--xfa/src/fxjse/src/context.cpp4
-rw-r--r--xfa/src/fxjse/src/context.h4
-rw-r--r--xfa/src/fxjse/src/dynprop.cpp1
-rw-r--r--xfa/src/fxjse/src/runtime.cpp4
-rw-r--r--xfa/src/fxjse/src/runtime.h5
-rw-r--r--xfa/src/fxjse/src/value.cpp4
8 files changed, 18 insertions, 9 deletions
diff --git a/xfa/src/fxjse/src/class.cpp b/xfa/src/fxjse/src/class.cpp
index ca36c358ef..6ca3be8b72 100644
--- a/xfa/src/fxjse/src/class.cpp
+++ b/xfa/src/fxjse/src/class.cpp
@@ -4,8 +4,8 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "xfa/src/foxitlib.h"
#include "xfa/src/fxjse/src/class.h"
+
#include "xfa/src/fxjse/src/context.h"
#include "xfa/src/fxjse/src/scope_inline.h"
#include "xfa/src/fxjse/src/util_inline.h"
diff --git a/xfa/src/fxjse/src/class.h b/xfa/src/fxjse/src/class.h
index 89c49abcf6..794a34e7b8 100644
--- a/xfa/src/fxjse/src/class.h
+++ b/xfa/src/fxjse/src/class.h
@@ -7,7 +7,8 @@
#ifndef XFA_SRC_FXJSE_SRC_CLASS_H_
#define XFA_SRC_FXJSE_SRC_CLASS_H_
-#include <v8.h>
+#include "v8/include/v8.h"
+#include "xfa/include/fxjse/fxjse.h"
class CFXJSE_Context;
class CFXJSE_Value;
diff --git a/xfa/src/fxjse/src/context.cpp b/xfa/src/fxjse/src/context.cpp
index 83d1279327..54b4f64efc 100644
--- a/xfa/src/fxjse/src/context.cpp
+++ b/xfa/src/fxjse/src/context.cpp
@@ -4,9 +4,9 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "xfa/src/foxitlib.h"
-#include "xfa/src/fxjse/src/class.h"
#include "xfa/src/fxjse/src/context.h"
+
+#include "xfa/src/fxjse/src/class.h"
#include "xfa/src/fxjse/src/scope_inline.h"
#include "xfa/src/fxjse/src/util_inline.h"
#include "xfa/src/fxjse/src/value.h"
diff --git a/xfa/src/fxjse/src/context.h b/xfa/src/fxjse/src/context.h
index 1b83ebb6d1..e6c16445cd 100644
--- a/xfa/src/fxjse/src/context.h
+++ b/xfa/src/fxjse/src/context.h
@@ -7,8 +7,12 @@
#ifndef XFA_SRC_FXJSE_SRC_CONTEXT_H_
#define XFA_SRC_FXJSE_SRC_CONTEXT_H_
+#include "v8/include/v8.h"
+#include "xfa/include/fxjse/fxjse.h"
+
class CFXJSE_Class;
class CFXJSE_Value;
+
class CFXJSE_Context {
protected:
CFXJSE_Context(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {}
diff --git a/xfa/src/fxjse/src/dynprop.cpp b/xfa/src/fxjse/src/dynprop.cpp
index f8dc19fc40..26beb5c283 100644
--- a/xfa/src/fxjse/src/dynprop.cpp
+++ b/xfa/src/fxjse/src/dynprop.cpp
@@ -4,7 +4,6 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "xfa/src/foxitlib.h"
#include "xfa/src/fxjse/src/class.h"
#include "xfa/src/fxjse/src/value.h"
diff --git a/xfa/src/fxjse/src/runtime.cpp b/xfa/src/fxjse/src/runtime.cpp
index a276319e6c..99a29c7da4 100644
--- a/xfa/src/fxjse/src/runtime.cpp
+++ b/xfa/src/fxjse/src/runtime.cpp
@@ -4,9 +4,9 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/include/jsapi/fxjs_v8.h" // For per-isolate data.
-#include "xfa/src/foxitlib.h"
#include "xfa/src/fxjse/src/runtime.h"
+
+#include "fpdfsdk/include/jsapi/fxjs_v8.h"
#include "xfa/src/fxjse/src/scope_inline.h"
// Duplicates fpdfsdk's JS_Runtime.h, but keeps XFA from depending on it.
diff --git a/xfa/src/fxjse/src/runtime.h b/xfa/src/fxjse/src/runtime.h
index 64a3a9454f..77a447f442 100644
--- a/xfa/src/fxjse/src/runtime.h
+++ b/xfa/src/fxjse/src/runtime.h
@@ -7,7 +7,11 @@
#ifndef XFA_SRC_FXJSE_SRC_RUNTIME_H_
#define XFA_SRC_FXJSE_SRC_RUNTIME_H_
+#include "core/include/fxcrt/fx_basic.h"
+#include "v8/include/v8.h"
+
class CFXJSE_RuntimeList;
+
class CFXJSE_RuntimeData {
protected:
CFXJSE_RuntimeData(v8::Isolate* pIsolate) : m_pIsolate(pIsolate){};
@@ -29,6 +33,7 @@ class CFXJSE_RuntimeData {
CFXJSE_RuntimeData(const CFXJSE_RuntimeData&);
CFXJSE_RuntimeData& operator=(const CFXJSE_RuntimeData&);
};
+
class CFXJSE_RuntimeList {
public:
typedef void (*RuntimeDisposeCallback)(v8::Isolate*);
diff --git a/xfa/src/fxjse/src/value.cpp b/xfa/src/fxjse/src/value.cpp
index aa0f7cfc86..b3c47b65c0 100644
--- a/xfa/src/fxjse/src/value.cpp
+++ b/xfa/src/fxjse/src/value.cpp
@@ -4,12 +4,12 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+#include "xfa/src/fxjse/src/value.h"
+
#include <math.h>
-#include "xfa/src/foxitlib.h"
#include "xfa/src/fxjse/src/class.h"
#include "xfa/src/fxjse/src/util_inline.h"
-#include "xfa/src/fxjse/src/value.h"
FX_BOOL FXJSE_Value_IsUndefined(FXJSE_HVALUE hValue) {
CFXJSE_Value* lpValue = reinterpret_cast<CFXJSE_Value*>(hValue);