summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/JS_Value.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-26 09:28:59 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-26 17:14:48 +0000
commit3a1ba8efdbfffad723646dd878e6ca511f9f75bd (patch)
tree3d025f32729479faa9628668cac0654f13e45a37 /fpdfsdk/javascript/JS_Value.h
parent8b6acddd1e25dd48582f954ea9e67861dbd4f50f (diff)
downloadpdfium-3a1ba8efdbfffad723646dd878e6ca511f9f75bd.tar.xz
Remove CJS_Array
This CL removes the CJS_Array wrapper and uses the v8 objects directly. Change-Id: I904f76e59e27d65db4b4d0bbd503fddb3e8cfc6f Reviewed-on: https://pdfium-review.googlesource.com/16830 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/JS_Value.h')
-rw-r--r--fpdfsdk/javascript/JS_Value.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/fpdfsdk/javascript/JS_Value.h b/fpdfsdk/javascript/JS_Value.h
index 2d5a390fca..046d959e68 100644
--- a/fpdfsdk/javascript/JS_Value.h
+++ b/fpdfsdk/javascript/JS_Value.h
@@ -11,8 +11,6 @@
#include "fxjs/fxjs_v8.h"
-class CJS_Array;
-class CJS_Date;
class CJS_Document;
class CJS_Object;
class CJS_Runtime;
@@ -39,27 +37,6 @@ class CJS_Return {
v8::Local<v8::Value> return_;
};
-class CJS_Array {
- public:
- CJS_Array();
- explicit CJS_Array(v8::Local<v8::Array> pArray);
- CJS_Array(const CJS_Array& other);
- virtual ~CJS_Array();
-
- int GetLength(CJS_Runtime* pRuntime) const;
-
- // These two calls may re-enter JS (and hence invalidate objects).
- v8::Local<v8::Value> GetElement(CJS_Runtime* pRuntime, unsigned index) const;
- void SetElement(CJS_Runtime* pRuntime,
- unsigned index,
- v8::Local<v8::Value> value);
-
- v8::Local<v8::Value> ToV8Value() const { return m_pArray; }
-
- private:
- mutable v8::Local<v8::Array> m_pArray;
-};
-
double JS_GetDateTime();
int JS_GetYearFromTime(double dt);
int JS_GetMonthFromTime(double dt);