blob: 030d1df8e5259dcb8bd22893e7cacb8259f81fe0 [file] [log] [blame]
K. Moon832a6942022-10-31 20:11:31 +00001// Copyright 2017 The PDFium Authors
Dan Sinclair46ad7f82017-11-01 18:48:17 +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
Dan Sinclairc0022612017-12-11 22:31:58 +00007#ifndef FXJS_XFA_CJX_LOGPSEUDOMODEL_H_
8#define FXJS_XFA_CJX_LOGPSEUDOMODEL_H_
Dan Sinclair46ad7f82017-11-01 18:48:17 +00009
Dan Sinclairc0022612017-12-11 22:31:58 +000010#include "fxjs/xfa/cjx_object.h"
Tom Sepez49dbb7f2018-12-19 17:56:55 +000011#include "fxjs/xfa/jse_define.h"
Dan Sinclair46ad7f82017-11-01 18:48:17 +000012
Dan Sinclair46ad7f82017-11-01 18:48:17 +000013class CScript_LogPseudoModel;
14
Dan Sinclairfe9d6402017-12-14 19:45:53 +000015// TODO(dsinclair): This doesn't exist in the spec. Remove after
16// xfa_basic_data_element_script is removed.
Tom Sepez55865452018-08-27 20:18:04 +000017class CJX_LogPseudoModel final : public CJX_Object {
Dan Sinclair46ad7f82017-11-01 18:48:17 +000018 public:
Tom Sepez757a6bf2020-09-17 17:22:38 +000019 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED;
Dan Sinclair46ad7f82017-11-01 18:48:17 +000020 ~CJX_LogPseudoModel() override;
21
Tom Sepez7e786cc2019-01-23 21:57:06 +000022 // CJX_Object:
23 bool DynamicTypeIs(TypeTag eType) const override;
24
Tom Sepezc26730d2019-01-22 18:55:32 +000025 JSE_METHOD(message);
26 JSE_METHOD(traceEnabled);
27 JSE_METHOD(traceActivate);
28 JSE_METHOD(traceDeactivate);
29 JSE_METHOD(trace);
Dan Sinclair93bb7252017-12-07 22:33:43 +000030
31 private:
Tom Sepez757a6bf2020-09-17 17:22:38 +000032 explicit CJX_LogPseudoModel(CScript_LogPseudoModel* model);
33
Tom Sepezc26730d2019-01-22 18:55:32 +000034 using Type__ = CJX_LogPseudoModel;
Tom Sepez7e786cc2019-01-23 21:57:06 +000035 using ParentType__ = CJX_Object;
Tom Sepezc26730d2019-01-22 18:55:32 +000036
Tom Sepez7e786cc2019-01-23 21:57:06 +000037 static const TypeTag static_type__ = TypeTag::LogPseudoModel;
Dan Sinclair93bb7252017-12-07 22:33:43 +000038 static const CJX_MethodSpec MethodSpecs[];
Dan Sinclair46ad7f82017-11-01 18:48:17 +000039};
40
Dan Sinclairc0022612017-12-11 22:31:58 +000041#endif // FXJS_XFA_CJX_LOGPSEUDOMODEL_H_