Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
13CJX_Script::CJX_Script(CXFA_Script* node) : CJX_Node(node) {}
14
15CJX_Script::~CJX_Script() = default;
16
17bool CJX_Script::DynamicTypeIs(TypeTag eType) const {
18 return eType == static_type__ || ParentType__::DynamicTypeIs(eType);
19}
20
21void CJX_Script::stateless(v8::Isolate* pIsolate,
22 v8::Local<v8::Value>* pValue,
23 bool bSetting,
24 XFA_Attribute eAttribute) {
25 if (bSetting) {
27 return;
28 }
29 *pValue = fxv8::NewStringHelper(pIsolate, "0");
30}
bool DynamicTypeIs(TypeTag eType) const override
Definition cjx_node.cpp:112
void ThrowInvalidPropertyException(v8::Isolate *pIsolate) const
bool DynamicTypeIs(TypeTag eType) const override
~CJX_Script() override
XFA_Attribute
Definition fxfa_basic.h:67