blob: 62cdec8b028471f03a5ef9f47e66426c987afa35 [file] [log] [blame]
Dan Sinclair93bb7252017-12-07 22:33:43 +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_DESC_H_
8#define FXJS_XFA_CJX_DESC_H_
9
Dan Sinclairc0022612017-12-11 22:31:58 +000010#include "fxjs/xfa/cjx_node.h"
Tom Sepez49dbb7f2018-12-19 17:56:55 +000011#include "fxjs/xfa/jse_define.h"
Dan Sinclair93bb7252017-12-07 22:33:43 +000012
13class CXFA_Desc;
14
Tom Sepez55865452018-08-27 20:18:04 +000015class CJX_Desc final : public CJX_Node {
Dan Sinclair93bb7252017-12-07 22:33:43 +000016 public:
17 explicit CJX_Desc(CXFA_Desc* desc);
18 ~CJX_Desc() 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(metadata);
Dan Sinclair93bb7252017-12-07 22:33:43 +000024
Dan Sinclair93bb7252017-12-07 22:33:43 +000025 private:
Tom Sepezc26730d2019-01-22 18:55:32 +000026 using Type__ = CJX_Desc;
Tom Sepez7e786cc2019-01-23 21:57:06 +000027 using ParentType__ = CJX_Node;
Tom Sepezc26730d2019-01-22 18:55:32 +000028
Tom Sepez7e786cc2019-01-23 21:57:06 +000029 static const TypeTag static_type__ = TypeTag::Desc;
Dan Sinclair93bb7252017-12-07 22:33:43 +000030 static const CJX_MethodSpec MethodSpecs[];
31};
32
33#endif // FXJS_XFA_CJX_DESC_H_