Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cjs_console.h
Go to the documentation of this file.
1// Copyright 2014 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef FXJS_CJS_CONSOLE_H_
8#define FXJS_CJS_CONSOLE_H_
9
10#include <vector>
11
12#include "fxjs/cjs_object.h"
13#include "fxjs/js_define.h"
14#include "third_party/base/containers/span.h"
15
16class CJS_Console final : public CJS_Object {
17 public:
18 static uint32_t GetObjDefnID();
19 static void DefineJSObjects(CFXJS_Engine* pEngine);
20
21 CJS_Console(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
22 ~CJS_Console() override;
23
24 JS_STATIC_METHOD(clear, CJS_Console)
25 JS_STATIC_METHOD(hide, CJS_Console)
26 JS_STATIC_METHOD(println, CJS_Console)
27 JS_STATIC_METHOD(show, CJS_Console)
28
29 private:
30 static uint32_t ObjDefnID;
31 static const char kName[];
32 static const JSMethodSpec MethodSpecs[];
33
34 CJS_Result clear(CJS_Runtime* pRuntime,
35 pdfium::span<v8::Local<v8::Value>> params);
36 CJS_Result hide(CJS_Runtime* pRuntime,
37 pdfium::span<v8::Local<v8::Value>> params);
38 CJS_Result println(CJS_Runtime* pRuntime,
39 pdfium::span<v8::Local<v8::Value>> params);
40 CJS_Result show(CJS_Runtime* pRuntime,
41 pdfium::span<v8::Local<v8::Value>> params);
42};
43
44#endif // FXJS_CJS_CONSOLE_H_
@ FXJSOBJTYPE_STATIC
static uint32_t GetObjDefnID()
~CJS_Console() override
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()
Definition cjs_result.h:27
#define JS_STATIC_METHOD(method_name, class_name)
Definition js_define.h:155