blob: b4238211ddcebeaad21619b530e0201b19d863cc [file] [log] [blame]
Dan Sinclair46ad7f82017-11-01 18:48:17 +00001// Copyright 2017 PDFium Authors. All rights reserved.
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
Dan Sinclairc0022612017-12-11 22:31:58 +00007#ifndef FXJS_XFA_CJX_SIGNATUREPSEUDOMODEL_H_
8#define FXJS_XFA_CJX_SIGNATUREPSEUDOMODEL_H_
Dan Sinclair46ad7f82017-11-01 18:48:17 +00009
Dan Sinclairc0022612017-12-11 22:31:58 +000010#include "fxjs/xfa/cjx_object.h"
Tom Sepez49dbb7f2018-12-19 17:56:55 +000011#include "fxjs/xfa/jse_define.h"
Dan Sinclair46ad7f82017-11-01 18:48:17 +000012
Dan Sinclair46ad7f82017-11-01 18:48:17 +000013class CScript_SignaturePseudoModel;
14
Tom Sepez55865452018-08-27 20:18:04 +000015class CJX_SignaturePseudoModel final : public CJX_Object {
Dan Sinclair46ad7f82017-11-01 18:48:17 +000016 public:
Tom Sepez757a6bf2020-09-17 17:22:38 +000017 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED;
Dan Sinclair46ad7f82017-11-01 18:48:17 +000018 ~CJX_SignaturePseudoModel() override;
19
Tom Sepez7e786cc2019-01-23 21:57:06 +000020 // CJX_Object:
21 bool DynamicTypeIs(TypeTag eType) const override;
22
Tom Sepezc26730d2019-01-22 18:55:32 +000023 JSE_METHOD(verifySignature /*verify*/);
24 JSE_METHOD(sign);
25 JSE_METHOD(enumerate);
26 JSE_METHOD(clear);
Dan Sinclair93bb7252017-12-07 22:33:43 +000027
28 private:
Tom Sepez757a6bf2020-09-17 17:22:38 +000029 explicit CJX_SignaturePseudoModel(CScript_SignaturePseudoModel* model);
30
Tom Sepezc26730d2019-01-22 18:55:32 +000031 using Type__ = CJX_SignaturePseudoModel;
Tom Sepez7e786cc2019-01-23 21:57:06 +000032 using ParentType__ = CJX_Object;
Tom Sepezc26730d2019-01-22 18:55:32 +000033
Tom Sepez7e786cc2019-01-23 21:57:06 +000034 static const TypeTag static_type__ = TypeTag::SignaturePesudoModel;
Dan Sinclair93bb7252017-12-07 22:33:43 +000035 static const CJX_MethodSpec MethodSpecs[];
Dan Sinclair46ad7f82017-11-01 18:48:17 +000036};
37
Dan Sinclairc0022612017-12-11 22:31:58 +000038#endif // FXJS_XFA_CJX_SIGNATUREPSEUDOMODEL_H_