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_script.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_script.h"
8
9
#
include
"fxjs/fxv8.h"
10
#
include
"v8/include/v8-primitive.h"
11
#
include
"xfa/fxfa/parser/cxfa_script.h"
12
13
CJX_Script::CJX_Script(CXFA_Script* node) :
CJX_Node
(node) {}
14
15
CJX_Script::~
CJX_Script
() =
default
;
16
17
bool
CJX_Script::
DynamicTypeIs
(
TypeTag
eType)
const
{
18
return
eType == static_type__ || ParentType__
::
DynamicTypeIs
(eType);
19
}
20
21
void
CJX_Script::stateless(
v8
::Isolate* pIsolate,
22
v8::Local<v8::Value>* pValue,
23
bool
bSetting,
24
XFA_Attribute
eAttribute) {
25
if
(bSetting) {
26
ThrowInvalidPropertyException
(pIsolate);
27
return
;
28
}
29
*pValue = fxv8::NewStringHelper(pIsolate,
"0"
);
30
}
CJX_Node
Definition
cjx_node.h:17
CJX_Node::DynamicTypeIs
bool DynamicTypeIs(TypeTag eType) const override
Definition
cjx_node.cpp:112
CJX_Object::ThrowInvalidPropertyException
void ThrowInvalidPropertyException(v8::Isolate *pIsolate) const
Definition
cjx_object.cpp:186
CJX_Object::TypeTag
TypeTag
Definition
cjx_object.h:49
CJX_Script::DynamicTypeIs
bool DynamicTypeIs(TypeTag eType) const override
Definition
cjx_script.cpp:17
CJX_Script::~CJX_Script
~CJX_Script() override
XFA_Attribute
XFA_Attribute
Definition
fxfa_basic.h:67
v8
Definition
fxv8_unittest.h:15
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxjs
xfa
cjx_script.cpp
Generated on
for Qt by
1.18.0