xref: /aosp_15_r20/external/pdfium/fxjs/xfa/cjx_encrypt.cpp (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1*3ac0a46fSAndroid Build Coastguard Worker // Copyright 2017 The PDFium Authors
2*3ac0a46fSAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be
3*3ac0a46fSAndroid Build Coastguard Worker // found in the LICENSE file.
4*3ac0a46fSAndroid Build Coastguard Worker 
5*3ac0a46fSAndroid Build Coastguard Worker // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6*3ac0a46fSAndroid Build Coastguard Worker 
7*3ac0a46fSAndroid Build Coastguard Worker #include "fxjs/xfa/cjx_encrypt.h"
8*3ac0a46fSAndroid Build Coastguard Worker 
9*3ac0a46fSAndroid Build Coastguard Worker #include "xfa/fxfa/parser/cxfa_encrypt.h"
10*3ac0a46fSAndroid Build Coastguard Worker 
CJX_Encrypt(CXFA_Encrypt * node)11*3ac0a46fSAndroid Build Coastguard Worker CJX_Encrypt::CJX_Encrypt(CXFA_Encrypt* node) : CJX_Node(node) {}
12*3ac0a46fSAndroid Build Coastguard Worker 
13*3ac0a46fSAndroid Build Coastguard Worker CJX_Encrypt::~CJX_Encrypt() = default;
14*3ac0a46fSAndroid Build Coastguard Worker 
DynamicTypeIs(TypeTag eType) const15*3ac0a46fSAndroid Build Coastguard Worker bool CJX_Encrypt::DynamicTypeIs(TypeTag eType) const {
16*3ac0a46fSAndroid Build Coastguard Worker   return eType == static_type__ || ParentType__::DynamicTypeIs(eType);
17*3ac0a46fSAndroid Build Coastguard Worker }
18*3ac0a46fSAndroid Build Coastguard Worker 
format(v8::Isolate * pIsolate,v8::Local<v8::Value> * pValue,bool bSetting,XFA_Attribute eAttribute)19*3ac0a46fSAndroid Build Coastguard Worker void CJX_Encrypt::format(v8::Isolate* pIsolate,
20*3ac0a46fSAndroid Build Coastguard Worker                          v8::Local<v8::Value>* pValue,
21*3ac0a46fSAndroid Build Coastguard Worker                          bool bSetting,
22*3ac0a46fSAndroid Build Coastguard Worker                          XFA_Attribute eAttribute) {}
23