blob: 6aaff834d9dd25a1d86ee829a15c99f55e1858c5 [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_BOOLEAN_H_
8#define FXJS_XFA_CJX_BOOLEAN_H_
9
Tom Sepezda86ca32019-01-25 18:38:26 +000010#include "fxjs/xfa/cjx_object.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_Boolean;
14
Tom Sepezda86ca32019-01-25 18:38:26 +000015class CJX_Boolean final : public CJX_Object {
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_Boolean() 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(defaultValue); /* {default} */
Tom Sepez315f94a2018-07-24 19:07:35 +000024 JSE_PROP(value);
Tom Sepezc26730d2019-01-22 18:55:32 +000025
26 private:
Tom Sepez757a6bf2020-09-17 17:22:38 +000027 explicit CJX_Boolean(CXFA_Boolean* node);
28
Tom Sepezc26730d2019-01-22 18:55:32 +000029 using Type__ = CJX_Boolean;
Tom Sepezda86ca32019-01-25 18:38:26 +000030 using ParentType__ = CJX_Object;
Tom Sepez7e786cc2019-01-23 21:57:06 +000031
32 static const TypeTag static_type__ = TypeTag::Boolean;
Dan Sinclairfe9d6402017-12-14 19:45:53 +000033};
34
35#endif // FXJS_XFA_CJX_BOOLEAN_H_