blob: e5cd2cba56b146b70cc16b3aa5bab237aadd7ff2 [file] [log] [blame]
K. Moon832a6942022-10-31 20:11:31 +00001// Copyright 2017 The PDFium Authors
Dan Sinclairfe9d6402017-12-14 19:45:53 +00002// 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#ifndef FXJS_XFA_CJX_HANDLER_H_
8#define FXJS_XFA_CJX_HANDLER_H_
9
10#include "fxjs/xfa/cjx_textnode.h"
Tom Sepez49dbb7f2018-12-19 17:56:55 +000011#include "fxjs/xfa/jse_define.h"
Dan Sinclairfe9d6402017-12-14 19:45:53 +000012
13class CXFA_Handler;
14
Tom Sepez55865452018-08-27 20:18:04 +000015class CJX_Handler final : public CJX_TextNode {
Dan Sinclairfe9d6402017-12-14 19:45:53 +000016 public:
Tom Sepez757a6bf2020-09-17 17:22:38 +000017 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED;
Dan Sinclairfe9d6402017-12-14 19:45:53 +000018 ~CJX_Handler() override;
19
Tom Sepez7e786cc2019-01-23 21:57:06 +000020 // CJX_Object:
21 bool DynamicTypeIs(TypeTag eType) const override;
22
Tom Sepez315f94a2018-07-24 19:07:35 +000023 JSE_PROP(version);
Tom Sepezc26730d2019-01-22 18:55:32 +000024
25 private:
Tom Sepez757a6bf2020-09-17 17:22:38 +000026 explicit CJX_Handler(CXFA_Handler* node);
27
Tom Sepezc26730d2019-01-22 18:55:32 +000028 using Type__ = CJX_Handler;
Tom Sepez7e786cc2019-01-23 21:57:06 +000029 using ParentType__ = CJX_TextNode;
30
31 static const TypeTag static_type__ = TypeTag::Handler;
Dan Sinclairfe9d6402017-12-14 19:45:53 +000032};
33
34#endif // FXJS_XFA_CJX_HANDLER_H_