summaryrefslogtreecommitdiff
path: root/fxjs/cjs_object.h
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_object.h')
-rw-r--r--fxjs/cjs_object.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/fxjs/cjs_object.h b/fxjs/cjs_object.h
index c3766fc2c0..70682cd51e 100644
--- a/fxjs/cjs_object.h
+++ b/fxjs/cjs_object.h
@@ -14,6 +14,7 @@
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "fxjs/cfxjs_engine.h"
#include "fxjs/cjs_runtime.h"
+#include "third_party/base/span.h"
struct JSConstSpec {
enum Type { Number = 0, String = 1 };
@@ -39,16 +40,13 @@ class CJS_Object {
public:
static void DefineConsts(CFXJS_Engine* pEngine,
int objId,
- const JSConstSpec consts[],
- size_t count);
+ pdfium::span<const JSConstSpec> consts);
static void DefineProps(CFXJS_Engine* pEngine,
int objId,
- const JSPropertySpec props[],
- size_t count);
+ pdfium::span<const JSPropertySpec> consts);
static void DefineMethods(CFXJS_Engine* pEngine,
int objId,
- const JSMethodSpec methods[],
- size_t count);
+ pdfium::span<const JSMethodSpec> consts);
CJS_Object(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
virtual ~CJS_Object();