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_delta.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_delta.h"
8
9#include <vector>
10
11#include "fxjs/js_resources.h"
12#include "fxjs/xfa/cfxjse_value.h"
13#include "third_party/base/containers/span.h"
14#include "xfa/fxfa/parser/cxfa_delta.h"
15
16const CJX_MethodSpec CJX_Delta::MethodSpecs[] = {{"restore", restore_static}};
17
18CJX_Delta::CJX_Delta(CXFA_Delta* delta) : CJX_Object(delta) {
19 DefineMethods(MethodSpecs);
20}
21
22CJX_Delta::~CJX_Delta() = default;
23
24bool CJX_Delta::DynamicTypeIs(TypeTag eType) const {
25 return eType == static_type__ || ParentType__::DynamicTypeIs(eType);
26}
27
28CJS_Result CJX_Delta::restore(CFXJSE_Engine* runtime,
29 pdfium::span<v8::Local<v8::Value>> params) {
30 if (!params.empty())
32
34}
35
36void CJX_Delta::currentValue(v8::Isolate* pIsolate,
37 v8::Local<v8::Value>* pValue,
38 bool bSetting,
39 XFA_Attribute eAttribute) {}
40
41void CJX_Delta::savedValue(v8::Isolate* pIsolate,
42 v8::Local<v8::Value>* pValue,
43 bool bSetting,
44 XFA_Attribute eAttribute) {}
45
46void CJX_Delta::target(v8::Isolate* pIsolate,
47 v8::Local<v8::Value>* pValue,
48 bool bSetting,
49 XFA_Attribute eAttribute) {}
friend class EventParamScope
static CJS_Result Success()
Definition cjs_result.h:27
static CJS_Result Failure(JSMessage id)
Definition cjs_result.h:34
~CJX_Delta() override
bool DynamicTypeIs(TypeTag eType) const override
Definition cjx_delta.cpp:24
void DefineMethods(pdfium::span< const CJX_MethodSpec > methods)
virtual bool DynamicTypeIs(TypeTag eType) const
XFA_Attribute
Definition fxfa_basic.h:67
JSMessage