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_container.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_container.h"
8
9
#
include
"core/fxcrt/span.h"
10
#
include
"fxjs/xfa/cfxjse_class.h"
11
#
include
"fxjs/xfa/cfxjse_engine.h"
12
#
include
"fxjs/xfa/cfxjse_value.h"
13
#
include
"v8/include/cppgc/allocation.h"
14
#
include
"v8/include/v8-object.h"
15
#
include
"xfa/fxfa/parser/cxfa_arraynodelist.h"
16
#
include
"xfa/fxfa/parser/cxfa_document.h"
17
#
include
"xfa/fxfa/parser/cxfa_field.h"
18
19
const
CJX_MethodSpec
CJX_Container
::MethodSpecs[] = {
20
{
"getDelta"
, getDelta_static},
21
{
"getDeltas"
, getDeltas_static}};
22
23
CJX_Container
::
CJX_Container
(
CXFA_Node
* node) :
CJX_Node
(
node
)
{
24
DefineMethods(MethodSpecs);
25
}
26
27
CJX_Container
::~
CJX_Container
() =
default
;
28
29
bool
CJX_Container
::
DynamicTypeIs
(
TypeTag
eType)
const
{
30
return
eType == static_type__ || ParentType__
::
DynamicTypeIs
(eType);
31
}
32
33
CJS_Result
CJX_Container
::getDelta(
CFXJSE_Engine
* runtime,
34
pdfium::span<v8::Local<v8::Value>> params) {
35
return
CJS_Result
::
Success
(
)
;
36
}
37
38
CJS_Result
CJX_Container
::getDeltas(
CFXJSE_Engine
* runtime,
39
pdfium::span<v8::Local<v8::Value>> params) {
40
CXFA_Document* pDoc =
GetDocument
();
41
auto
* pList = cppgc::MakeGarbageCollected<CXFA_ArrayNodeList>(
42
pDoc->GetHeap()->GetAllocationHandle(), pDoc);
43
pDoc
->
GetNodeOwner
(
)
->
PersistList
(
pList
)
;
44
return
CJS_Result
::
Success
(
runtime->NewNormalXFAObject(pList)
)
;
45
}
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_Container
Definition
cjx_container.h:15
CJX_Container::DynamicTypeIs
bool DynamicTypeIs(TypeTag eType) const override
Definition
cjx_container.cpp:29
CJX_Container::~CJX_Container
~CJX_Container() override
CJX_Container::CJX_Container
CJX_Container(CXFA_Node *node)
Definition
cjx_container.cpp:23
CJX_Node
Definition
cjx_node.h:17
CJX_Node::DynamicTypeIs
bool DynamicTypeIs(TypeTag eType) const override
Definition
cjx_node.cpp:112
CJX_Node::CJX_Node
CJX_Node(CXFA_Node *node)
Definition
cjx_node.cpp:106
CJX_Object::GetDocument
CXFA_Document * GetDocument() const
Definition
cjx_object.cpp:132
CJX_Object::TypeTag
TypeTag
Definition
cjx_object.h:49
CXFA_Document::GetNodeOwner
CXFA_NodeOwner * GetNodeOwner()
Definition
cxfa_document.h:99
CXFA_NodeOwner::PersistList
void PersistList(CXFA_List *list)
Definition
cxfa_nodeowner.cpp:22
CXFA_Node
Definition
cxfa_node.h:94
CJX_MethodSpec
Definition
cjx_object.h:40
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxjs
xfa
cjx_container.cpp
Generated on
for Qt by
1.18.0