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_wsdlconnection.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_wsdlconnection.h"
8
9
#
include
"core/fxcrt/span.h"
10
#
include
"fxjs/cfx_v8.h"
11
#
include
"fxjs/js_resources.h"
12
#
include
"fxjs/xfa/cfxjse_value.h"
13
#
include
"v8/include/v8-primitive.h"
14
#
include
"xfa/fxfa/parser/cxfa_wsdlconnection.h"
15
16
const
CJX_MethodSpec
CJX_WsdlConnection::MethodSpecs[] = {
17
{
"execute"
, execute_static}};
18
19
CJX_WsdlConnection::CJX_WsdlConnection(CXFA_WsdlConnection* connection)
20
:
CJX_Node
(connection) {
21
DefineMethods(MethodSpecs);
22
}
23
24
CJX_WsdlConnection::~
CJX_WsdlConnection
() =
default
;
25
26
bool
CJX_WsdlConnection::
DynamicTypeIs
(
TypeTag
eType)
const
{
27
return
eType == static_type__ || ParentType__
::
DynamicTypeIs
(eType);
28
}
29
30
CJS_Result
CJX_WsdlConnection::execute(
31
CFXJSE_Engine
* runtime,
32
pdfium::span<v8::Local<v8::Value>> params) {
33
if
(!params.empty() && params.size() != 1)
34
return
CJS_Result
::
Failure
(
JSMessage
::
kParamError
)
;
35
36
return
CJS_Result
::
Success
(
runtime->NewBoolean(
false
)
)
;
37
}
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
CJS_Result::Failure
static CJS_Result Failure(JSMessage id)
Definition
cjs_result.h:35
CJX_Node
Definition
cjx_node.h:17
CJX_Node::DynamicTypeIs
bool DynamicTypeIs(TypeTag eType) const override
Definition
cjx_node.cpp:112
CJX_Object::TypeTag
TypeTag
Definition
cjx_object.h:49
CJX_WsdlConnection::DynamicTypeIs
bool DynamicTypeIs(TypeTag eType) const override
Definition
cjx_wsdlconnection.cpp:26
CJX_WsdlConnection::~CJX_WsdlConnection
~CJX_WsdlConnection() override
JSMessage
JSMessage
Definition
js_resources.h:12
JSMessage::kParamError
@ kParamError
Definition
js_resources.h:14
CJX_MethodSpec
Definition
cjx_object.h:40
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxjs
xfa
cjx_wsdlconnection.cpp
Generated on
for Qt by
1.18.0