7#include "fxjs/cjs_console.h"
11#include "fxjs/cjs_event_context.h"
12#include "fxjs/cjs_object.h"
13#include "fxjs/js_define.h"
14#include "third_party/base/containers/span.h"
16const JSMethodSpec CJS_Console::MethodSpecs[] = {{
"clear", clear_static},
17 {
"hide", hide_static},
18 {
"println", println_static},
19 {
"show", show_static}};
21uint32_t CJS_Console::ObjDefnID = 0;
22const char CJS_Console::kName[] =
"console";
32 JSConstructor<CJS_Console>, JSDestructor);
36CJS_Console::
CJS_Console(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime)
41CJS_Result CJS_Console::clear(CJS_Runtime* pRuntime,
42 pdfium::span<v8::Local<v8::Value>> params) {
46CJS_Result CJS_Console::hide(CJS_Runtime* pRuntime,
47 pdfium::span<v8::Local<v8::Value>> params) {
51CJS_Result CJS_Console::println(CJS_Runtime* pRuntime,
52 pdfium::span<v8::Local<v8::Value>> params) {
56CJS_Result CJS_Console::show(CJS_Runtime* pRuntime,
57 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 void DefineMethods(CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSMethodSpec > consts)
static CJS_Result Success()