blob: ccb8bbe2433b1d3acf03d7d4d746904793b2406c [file] [log] [blame]
kumarashishg826308d2023-06-23 13:21:22 +00001// Copyright 2017 The PDFium Authors
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -07002// 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 Huang49cc9302020-04-27 16:14:24 -070011#include "core/fxcrt/retain_ptr.h"
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070012
13class CFX_CSSValue : public Retainable {
14 public:
kumarashishg826308d2023-06-23 13:21:22 +000015 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. Moltmannd904c1e2018-03-19 09:26:45 -070026
27 protected:
kumarashishg826308d2023-06-23 13:21:22 +000028 explicit CFX_CSSValue(PrimitiveType type);
29 ~CFX_CSSValue() override;
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070030
31 private:
kumarashishg826308d2023-06-23 13:21:22 +000032 const PrimitiveType m_value;
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070033};
34
35#endif // CORE_FXCRT_CSS_CFX_CSSVALUE_H_