blob: f8dd60fff992af6fb52af0d332f99e61ece2916c [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_DATE_H_
8#define FXJS_XFA_CJX_DATE_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_Date;
14
Tom Sepezda86ca32019-01-25 18:38:26 +000015class CJX_Date final : public CJX_Object {
Dan Sinclairfe9d6402017-12-14 19:45:53 +000016 public:
17 explicit CJX_Date(CXFA_Date* node);
18 ~CJX_Date() 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:
27 using Type__ = CJX_Date;
Tom Sepezda86ca32019-01-25 18:38:26 +000028 using ParentType__ = CJX_Object;
Tom Sepez7e786cc2019-01-23 21:57:06 +000029
30 static const TypeTag static_type__ = TypeTag::Date;
Dan Sinclairfe9d6402017-12-14 19:45:53 +000031};
32
33#endif // FXJS_XFA_CJX_DATE_H_