kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 1 | // Copyright 2017 The PDFium Authors |
Philip P. Moltmann | d904c1e | 2018-03-19 09:26:45 -0700 | [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 | |
| 7 | #ifndef CORE_FXCRT_CSS_CFX_CSSVALUE_H_ |
| 8 | #define CORE_FXCRT_CSS_CFX_CSSVALUE_H_ |
| 9 | |
| 10 | #include "core/fxcrt/css/cfx_css.h" |
Haibo Huang | 49cc930 | 2020-04-27 16:14:24 -0700 | [diff] [blame] | 11 | #include "core/fxcrt/retain_ptr.h" |
Philip P. Moltmann | d904c1e | 2018-03-19 09:26:45 -0700 | [diff] [blame] | 12 | |
| 13 | class CFX_CSSValue : public Retainable { |
| 14 | public: |
kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 15 | enum class PrimitiveType : uint8_t { |
| 16 | kUnknown = 0, |
| 17 | kNumber, |
| 18 | kString, |
| 19 | kRGB, |
| 20 | kEnum, |
| 21 | kFunction, |
| 22 | kList, |
| 23 | }; |
| 24 | |
| 25 | PrimitiveType GetType() const { return m_value; } |
Philip P. Moltmann | d904c1e | 2018-03-19 09:26:45 -0700 | [diff] [blame] | 26 | |
| 27 | protected: |
kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 28 | explicit CFX_CSSValue(PrimitiveType type); |
| 29 | ~CFX_CSSValue() override; |
Philip P. Moltmann | d904c1e | 2018-03-19 09:26:45 -0700 | [diff] [blame] | 30 | |
| 31 | private: |
kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 32 | const PrimitiveType m_value; |
Philip P. Moltmann | d904c1e | 2018-03-19 09:26:45 -0700 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | #endif // CORE_FXCRT_CSS_CFX_CSSVALUE_H_ |