Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
cjs_console.cpp
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
#
include
"fxjs/cjs_console.h"
8
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"
13
14
const
JSMethodSpec
CJS_Console::MethodSpecs[] = {{
"clear"
, clear_static},
15
{
"hide"
, hide_static},
16
{
"println"
, println_static},
17
{
"show"
, show_static}};
18
19
uint32_t CJS_Console::ObjDefnID = 0;
20
const
char
CJS_Console::kName[] =
"console"
;
21
22
// static
23
uint32_t CJS_Console::
GetObjDefnID
() {
24
return
ObjDefnID;
25
}
26
27
// static
28
void
CJS_Console::
DefineJSObjects
(
CFXJS_Engine
* pEngine) {
29
ObjDefnID = pEngine->DefineObj(CJS_Console::kName,
FXJSOBJTYPE_STATIC
,
30
JSConstructor<CJS_Console>, JSDestructor);
31
DefineMethods(pEngine, ObjDefnID, MethodSpecs);
32
}
33
34
CJS_Console::
CJS_Console
(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime)
35
:
CJS_Object
(pObject, pRuntime) {}
36
37
CJS_Console::~
CJS_Console
() =
default
;
38
39
CJS_Result
CJS_Console::clear(CJS_Runtime* pRuntime,
40
pdfium::span<v8::Local<v8::Value>> params) {
41
return
CJS_Result
::
Success
(
)
;
42
}
43
44
CJS_Result
CJS_Console::hide(CJS_Runtime* pRuntime,
45
pdfium::span<v8::Local<v8::Value>> params) {
46
return
CJS_Result
::
Success
(
)
;
47
}
48
49
CJS_Result
CJS_Console::println(CJS_Runtime* pRuntime,
50
pdfium::span<v8::Local<v8::Value>> params) {
51
return
CJS_Result
::
Success
(
)
;
52
}
53
54
CJS_Result
CJS_Console::show(CJS_Runtime* pRuntime,
55
pdfium::span<v8::Local<v8::Value>> params) {
56
return
CJS_Result
::
Success
(
)
;
57
}
FXJSOBJTYPE_STATIC
@ FXJSOBJTYPE_STATIC
Definition
cfxjs_engine.h:36
CFXJS_Engine
Definition
cfxjs_engine.h:112
CJS_Console::GetObjDefnID
static uint32_t GetObjDefnID()
Definition
cjs_console.cpp:23
CJS_Console::~CJS_Console
~CJS_Console() override
CJS_Console::CJS_Console
CJS_Console(v8::Local< v8::Object > pObject, CJS_Runtime *pRuntime)
Definition
cjs_console.cpp:34
CJS_Console::DefineJSObjects
static void DefineJSObjects(CFXJS_Engine *pEngine)
Definition
cjs_console.cpp:28
CJS_Object
Definition
cjs_object.h:35
CJS_Result
Definition
cjs_result.h:15
CJS_Result::Success
static CJS_Result Success()
Definition
cjs_result.h:28
JSMethodSpec
Definition
cjs_object.h:30
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxjs
cjs_console.cpp
Generated on
for Qt by
1.18.0