summaryrefslogtreecommitdiff
path: root/fpdfsdk/include/jsapi
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-04-07 15:26:59 -0700
committerTom Sepez <tsepez@chromium.org>2015-04-07 15:26:59 -0700
commit0415b381008dd0bcf2ed5da6f1371f1df396bc07 (patch)
tree35ee8a601e09f0c88ac5c32d7f668347fe20170c /fpdfsdk/include/jsapi
parenta6d40307bcc979214dd97fdae3d58dcc5ffa315a (diff)
downloadpdfium-0415b381008dd0bcf2ed5da6f1371f1df396bc07.tar.xz
Fix (nearly all) IWYU in fpdfskd/include/javascript/ headers.
Move some typedefs for v8 types into fxjs_v8.h wrapper to avoid circular inclusions. Also delete JS_Module.h, as no other file includes it. BUG=https://code.google.com/p/pdfium/issues/detail?id=66 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1060133002
Diffstat (limited to 'fpdfsdk/include/jsapi')
-rw-r--r--fpdfsdk/include/jsapi/fxjs_v8.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fpdfsdk/include/jsapi/fxjs_v8.h b/fpdfsdk/include/jsapi/fxjs_v8.h
index 70653c5d83..739fd2d4c0 100644
--- a/fpdfsdk/include/jsapi/fxjs_v8.h
+++ b/fpdfsdk/include/jsapi/fxjs_v8.h
@@ -4,12 +4,19 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+// PDFium wrapper around V8 APIs. PDFium code should include this file rather
+// than including V8 headers directly.
+
#ifndef FXJSAPI_H
#define FXJSAPI_H
#include <v8.h>
#include "../../../core/include/fxcrt/fx_string.h" // For CFX_WideString
+typedef v8::Value JSValue;
+typedef v8::Handle<v8::Object> JSObject;
+typedef v8::Handle<v8::Object> JSFXObject;
+
enum FXJSOBJTYPE
{
JS_DYNAMIC = 0,