summaryrefslogtreecommitdiff
path: root/xfa/src/fxjse
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2016-02-23 09:09:24 -0500
committerDan Sinclair <dsinclair@chromium.org>2016-02-23 09:09:24 -0500
commit880962cb81b7a34e4b90a2ecb1992f1afb13d529 (patch)
tree0c308484095670633092b1d26e5b9335610e9935 /xfa/src/fxjse
parent7f9fddeaaaddb5a898f1431e7d2d8b89d40fad87 (diff)
downloadpdfium-880962cb81b7a34e4b90a2ecb1992f1afb13d529.tar.xz
Sort includes in xfa/.
This CL sorts all the includes in the xfa/ directory. There are a lot of IWYU errors that have been fixed to make things compile again. BUG=pdfium:65 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1722803002 .
Diffstat (limited to 'xfa/src/fxjse')
-rw-r--r--xfa/src/fxjse/src/class.cpp6
-rw-r--r--xfa/src/fxjse/src/class.h3
-rw-r--r--xfa/src/fxjse/src/context.cpp6
-rw-r--r--xfa/src/fxjse/src/dynprop.cpp2
-rw-r--r--xfa/src/fxjse/src/fxv8.h2
-rw-r--r--xfa/src/fxjse/src/scope_inline.h2
-rw-r--r--xfa/src/fxjse/src/util_inline.h2
-rw-r--r--xfa/src/fxjse/src/value.cpp4
8 files changed, 16 insertions, 11 deletions
diff --git a/xfa/src/fxjse/src/class.cpp b/xfa/src/fxjse/src/class.cpp
index 6cf90efb1a..f33a87486d 100644
--- a/xfa/src/fxjse/src/class.cpp
+++ b/xfa/src/fxjse/src/class.cpp
@@ -5,12 +5,12 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/src/foxitlib.h"
-#include "xfa/src/fxjse/src/fxv8.h"
-#include "xfa/src/fxjse/src/context.h"
#include "xfa/src/fxjse/src/class.h"
-#include "xfa/src/fxjse/src/value.h"
+#include "xfa/src/fxjse/src/context.h"
+#include "xfa/src/fxjse/src/fxv8.h"
#include "xfa/src/fxjse/src/scope_inline.h"
#include "xfa/src/fxjse/src/util_inline.h"
+#include "xfa/src/fxjse/src/value.h"
static void FXJSE_V8ConstructorCallback_Wrapper(
const v8::FunctionCallbackInfo<v8::Value>& info);
static void FXJSE_V8FunctionCallback_Wrapper(
diff --git a/xfa/src/fxjse/src/class.h b/xfa/src/fxjse/src/class.h
index 763b3236ec..89c49abcf6 100644
--- a/xfa/src/fxjse/src/class.h
+++ b/xfa/src/fxjse/src/class.h
@@ -7,8 +7,11 @@
#ifndef XFA_SRC_FXJSE_SRC_CLASS_H_
#define XFA_SRC_FXJSE_SRC_CLASS_H_
+#include <v8.h>
+
class CFXJSE_Context;
class CFXJSE_Value;
+
class CFXJSE_Class {
protected:
CFXJSE_Class(CFXJSE_Context* lpContext)
diff --git a/xfa/src/fxjse/src/context.cpp b/xfa/src/fxjse/src/context.cpp
index 6161802e08..269e817cd6 100644
--- a/xfa/src/fxjse/src/context.cpp
+++ b/xfa/src/fxjse/src/context.cpp
@@ -5,12 +5,12 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/src/foxitlib.h"
-#include "xfa/src/fxjse/src/fxv8.h"
-#include "xfa/src/fxjse/src/context.h"
#include "xfa/src/fxjse/src/class.h"
-#include "xfa/src/fxjse/src/value.h"
+#include "xfa/src/fxjse/src/context.h"
+#include "xfa/src/fxjse/src/fxv8.h"
#include "xfa/src/fxjse/src/scope_inline.h"
#include "xfa/src/fxjse/src/util_inline.h"
+#include "xfa/src/fxjse/src/value.h"
FXJSE_HCONTEXT FXJSE_Context_Create(FXJSE_HRUNTIME hRuntime,
const FXJSE_CLASS* lpGlobalClass,
void* lpGlobalObject) {
diff --git a/xfa/src/fxjse/src/dynprop.cpp b/xfa/src/fxjse/src/dynprop.cpp
index 3ae5279345..2bfb1a0822 100644
--- a/xfa/src/fxjse/src/dynprop.cpp
+++ b/xfa/src/fxjse/src/dynprop.cpp
@@ -5,8 +5,8 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/src/foxitlib.h"
-#include "xfa/src/fxjse/src/fxv8.h"
#include "xfa/src/fxjse/src/class.h"
+#include "xfa/src/fxjse/src/fxv8.h"
#include "xfa/src/fxjse/src/value.h"
static void FXJSE_DynPropGetterAdapter_MethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) {
diff --git a/xfa/src/fxjse/src/fxv8.h b/xfa/src/fxjse/src/fxv8.h
index 433003c4b5..fcf1e59855 100644
--- a/xfa/src/fxjse/src/fxv8.h
+++ b/xfa/src/fxjse/src/fxv8.h
@@ -9,7 +9,7 @@
#ifndef XFA_SRC_FXJSE_SRC_FXV8_H_
#define XFA_SRC_FXJSE_SRC_FXV8_H_
-#include <v8.h>
#include <libplatform/libplatform.h>
+#include <v8.h>
#endif // XFA_SRC_FXJSE_SRC_FXV8_H_
diff --git a/xfa/src/fxjse/src/scope_inline.h b/xfa/src/fxjse/src/scope_inline.h
index 77ddfa369e..6a7860f93e 100644
--- a/xfa/src/fxjse/src/scope_inline.h
+++ b/xfa/src/fxjse/src/scope_inline.h
@@ -7,8 +7,8 @@
#ifndef XFA_SRC_FXJSE_SRC_SCOPE_INLINE_H_
#define XFA_SRC_FXJSE_SRC_SCOPE_INLINE_H_
-#include "xfa/src/fxjse/src/runtime.h"
#include "xfa/src/fxjse/src/context.h"
+#include "xfa/src/fxjse/src/runtime.h"
class CFXJSE_ScopeUtil_IsolateHandle {
protected:
diff --git a/xfa/src/fxjse/src/util_inline.h b/xfa/src/fxjse/src/util_inline.h
index b6d66ad4f2..21520cfbe6 100644
--- a/xfa/src/fxjse/src/util_inline.h
+++ b/xfa/src/fxjse/src/util_inline.h
@@ -7,6 +7,8 @@
#ifndef XFA_SRC_FXJSE_SRC_UTIL_INLINE_H_
#define XFA_SRC_FXJSE_SRC_UTIL_INLINE_H_
+#include "xfa/src/fxjse/src/context.h"
+
static V8_INLINE v8::Local<v8::Object> FXJSE_GetGlobalObjectFromContext(
const v8::Local<v8::Context>& hContext) {
return hContext->Global()->GetPrototype().As<v8::Object>();
diff --git a/xfa/src/fxjse/src/value.cpp b/xfa/src/fxjse/src/value.cpp
index 325996ff11..5aca40368f 100644
--- a/xfa/src/fxjse/src/value.cpp
+++ b/xfa/src/fxjse/src/value.cpp
@@ -7,10 +7,10 @@
#include <math.h>
#include "xfa/src/foxitlib.h"
-#include "xfa/src/fxjse/src/fxv8.h"
-#include "xfa/src/fxjse/src/value.h"
#include "xfa/src/fxjse/src/class.h"
+#include "xfa/src/fxjse/src/fxv8.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);