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
cjx_logpseudomodel.cpp
Go to the documentation of this file.
1
// Copyright 2017 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/xfa/cjx_logpseudomodel.h"
8
9
#
include
"core/fxcrt/span.h"
10
#
include
"fxjs/xfa/cfxjse_value.h"
11
#
include
"xfa/fxfa/parser/cscript_logpseudomodel.h"
12
13
const
CJX_MethodSpec
CJX_LogPseudoModel::MethodSpecs[] = {
14
{
"message"
, message_static},
15
{
"traceEnabled"
, traceEnabled_static},
16
{
"traceActivate"
, traceActivate_static},
17
{
"traceDeactivate"
, traceDeactivate_static},
18
{
"trace"
, trace_static}};
19
20
CJX_LogPseudoModel::CJX_LogPseudoModel(CScript_LogPseudoModel* model)
21
:
CJX_Object
(model) {
22
DefineMethods(MethodSpecs);
23
}
24
25
CJX_LogPseudoModel::~
CJX_LogPseudoModel
() =
default
;
26
27
bool
CJX_LogPseudoModel::
DynamicTypeIs
(
TypeTag
eType)
const
{
28
return
eType == static_type__ || ParentType__
::
DynamicTypeIs
(eType);
29
}
30
31
CJS_Result
CJX_LogPseudoModel::message(
32
CFXJSE_Engine
* runtime,
33
pdfium::span<v8::Local<v8::Value>> params) {
34
// Uncomment to allow using xfa.log.message(""); from JS.
35
// fprintf(stderr, "LOG\n");
36
// for (auto& val : params) {
37
// v8::String::Utf8Value str(runtime->GetIsolate(), val);
38
// fprintf(stderr, " %ls\n", WideString::FromUTF8(*str).c_str());
39
// }
40
41
return
CJS_Result
::
Success
(
)
;
42
}
43
44
CJS_Result
CJX_LogPseudoModel::traceEnabled(
45
CFXJSE_Engine
* runtime,
46
pdfium::span<v8::Local<v8::Value>> params) {
47
return
CJS_Result
::
Success
(
)
;
48
}
49
50
CJS_Result
CJX_LogPseudoModel::traceActivate(
51
CFXJSE_Engine
* runtime,
52
pdfium::span<v8::Local<v8::Value>> params) {
53
return
CJS_Result
::
Success
(
)
;
54
}
55
56
CJS_Result
CJX_LogPseudoModel::traceDeactivate(
57
CFXJSE_Engine
* runtime,
58
pdfium::span<v8::Local<v8::Value>> params) {
59
return
CJS_Result
::
Success
(
)
;
60
}
61
62
CJS_Result
CJX_LogPseudoModel::trace(
63
CFXJSE_Engine
* runtime,
64
pdfium::span<v8::Local<v8::Value>> params) {
65
return
CJS_Result
::
Success
(
)
;
66
}
CFXJSE_Engine::EventParamScope
friend class EventParamScope
Definition
cfxjse_engine.h:127
CJS_Result
Definition
cjs_result.h:15
CJS_Result::Success
static CJS_Result Success()
Definition
cjs_result.h:28
CJX_LogPseudoModel::DynamicTypeIs
bool DynamicTypeIs(TypeTag eType) const override
Definition
cjx_logpseudomodel.cpp:27
CJX_LogPseudoModel::~CJX_LogPseudoModel
~CJX_LogPseudoModel() override
CJX_Object
Definition
cjx_object.h:46
CJX_Object::TypeTag
TypeTag
Definition
cjx_object.h:49
CJX_Object::DynamicTypeIs
virtual bool DynamicTypeIs(TypeTag eType) const
Definition
cjx_object.cpp:123
CJX_MethodSpec
Definition
cjx_object.h:40
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxjs
xfa
cjx_logpseudomodel.cpp
Generated on
for Qt by
1.18.0