blob: c98d2fb45bdd35c70f7c6f2149479c200bab7157 [file] [log] [blame]
Dan Sinclairfe9d6402017-12-14 19:45:53 +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
7#ifndef FXJS_XFA_CJX_EXTRAS_H_
8#define FXJS_XFA_CJX_EXTRAS_H_
9
10#include "fxjs/xfa/cjx_node.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_Extras;
14
Tom Sepez55865452018-08-27 20:18:04 +000015class CJX_Extras final : public CJX_Node {
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_Extras() 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(type);
Tom Sepezc26730d2019-01-22 18:55:32 +000024
25 private:
Tom Sepez757a6bf2020-09-17 17:22:38 +000026 explicit CJX_Extras(CXFA_Extras* node);
27
Tom Sepezc26730d2019-01-22 18:55:32 +000028 using Type__ = CJX_Extras;
Tom Sepez7e786cc2019-01-23 21:57:06 +000029 using ParentType__ = CJX_Node;
30
31 static const TypeTag static_type__ = TypeTag::Extras;
Dan Sinclairfe9d6402017-12-14 19:45:53 +000032};
33
34#endif // FXJS_XFA_CJX_EXTRAS_H_