7#include "fxjs/cjs_console.h"
9#include "core/fxcrt/span.h"
10#include "fxjs/cjs_event_context.h"
11#include "fxjs/cjs_object.h"
12#include "fxjs/js_define.h"
14const JSMethodSpec CJS_Console::MethodSpecs[] = {{
"clear", clear_static},
15 {
"hide", hide_static},
16 {
"println", println_static},
17 {
"show", show_static}};
19uint32_t CJS_Console::ObjDefnID = 0;
20const char CJS_Console::kName[] =
"console";
30 JSConstructor<CJS_Console>, JSDestructor);
31 DefineMethods(pEngine, ObjDefnID, MethodSpecs);
34CJS_Console::
CJS_Console(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime)
39CJS_Result CJS_Console::clear(CJS_Runtime* pRuntime,
40 pdfium::span<v8::Local<v8::Value>> params) {
44CJS_Result CJS_Console::hide(CJS_Runtime* pRuntime,
45 pdfium::span<v8::Local<v8::Value>> params) {
49CJS_Result CJS_Console::println(CJS_Runtime* pRuntime,
50 pdfium::span<v8::Local<v8::Value>> params) {
54CJS_Result CJS_Console::show(CJS_Runtime* pRuntime,
55 pdfium::span<v8::Local<v8::Value>> params) {
static uint32_t GetObjDefnID()
CJS_Console(v8::Local< v8::Object > pObject, CJS_Runtime *pRuntime)
static void DefineJSObjects(CFXJS_Engine *pEngine)
static CJS_Result Success()