K. Moon | 832a694 | 2022-10-31 20:11:31 +0000 | [diff] [blame] | 1 | // Copyright 2017 The PDFium Authors |
Dan Sinclair | 46ad7f8 | 2017-11-01 18:48:17 +0000 | [diff] [blame] | 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 | |
Dan Sinclair | c002261 | 2017-12-11 22:31:58 +0000 | [diff] [blame] | 7 | #ifndef FXJS_XFA_CJX_LOGPSEUDOMODEL_H_ |
| 8 | #define FXJS_XFA_CJX_LOGPSEUDOMODEL_H_ |
Dan Sinclair | 46ad7f8 | 2017-11-01 18:48:17 +0000 | [diff] [blame] | 9 | |
Dan Sinclair | c002261 | 2017-12-11 22:31:58 +0000 | [diff] [blame] | 10 | #include "fxjs/xfa/cjx_object.h" |
Tom Sepez | 49dbb7f | 2018-12-19 17:56:55 +0000 | [diff] [blame] | 11 | #include "fxjs/xfa/jse_define.h" |
Dan Sinclair | 46ad7f8 | 2017-11-01 18:48:17 +0000 | [diff] [blame] | 12 | |
Dan Sinclair | 46ad7f8 | 2017-11-01 18:48:17 +0000 | [diff] [blame] | 13 | class CScript_LogPseudoModel; |
| 14 | |
Dan Sinclair | fe9d640 | 2017-12-14 19:45:53 +0000 | [diff] [blame] | 15 | // TODO(dsinclair): This doesn't exist in the spec. Remove after |
| 16 | // xfa_basic_data_element_script is removed. |
Tom Sepez | 5586545 | 2018-08-27 20:18:04 +0000 | [diff] [blame] | 17 | class CJX_LogPseudoModel final : public CJX_Object { |
Dan Sinclair | 46ad7f8 | 2017-11-01 18:48:17 +0000 | [diff] [blame] | 18 | public: |
Tom Sepez | 757a6bf | 2020-09-17 17:22:38 +0000 | [diff] [blame] | 19 | CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED; |
Dan Sinclair | 46ad7f8 | 2017-11-01 18:48:17 +0000 | [diff] [blame] | 20 | ~CJX_LogPseudoModel() override; |
| 21 | |
Tom Sepez | 7e786cc | 2019-01-23 21:57:06 +0000 | [diff] [blame] | 22 | // CJX_Object: |
| 23 | bool DynamicTypeIs(TypeTag eType) const override; |
| 24 | |
Tom Sepez | c26730d | 2019-01-22 18:55:32 +0000 | [diff] [blame] | 25 | JSE_METHOD(message); |
| 26 | JSE_METHOD(traceEnabled); |
| 27 | JSE_METHOD(traceActivate); |
| 28 | JSE_METHOD(traceDeactivate); |
| 29 | JSE_METHOD(trace); |
Dan Sinclair | 93bb725 | 2017-12-07 22:33:43 +0000 | [diff] [blame] | 30 | |
| 31 | private: |
Tom Sepez | 757a6bf | 2020-09-17 17:22:38 +0000 | [diff] [blame] | 32 | explicit CJX_LogPseudoModel(CScript_LogPseudoModel* model); |
| 33 | |
Tom Sepez | c26730d | 2019-01-22 18:55:32 +0000 | [diff] [blame] | 34 | using Type__ = CJX_LogPseudoModel; |
Tom Sepez | 7e786cc | 2019-01-23 21:57:06 +0000 | [diff] [blame] | 35 | using ParentType__ = CJX_Object; |
Tom Sepez | c26730d | 2019-01-22 18:55:32 +0000 | [diff] [blame] | 36 | |
Tom Sepez | 7e786cc | 2019-01-23 21:57:06 +0000 | [diff] [blame] | 37 | static const TypeTag static_type__ = TypeTag::LogPseudoModel; |
Dan Sinclair | 93bb725 | 2017-12-07 22:33:43 +0000 | [diff] [blame] | 38 | static const CJX_MethodSpec MethodSpecs[]; |
Dan Sinclair | 46ad7f8 | 2017-11-01 18:48:17 +0000 | [diff] [blame] | 39 | }; |
| 40 | |
Dan Sinclair | c002261 | 2017-12-11 22:31:58 +0000 | [diff] [blame] | 41 | #endif // FXJS_XFA_CJX_LOGPSEUDOMODEL_H_ |