From 6efd0d7464e1f02ef3cd4f1abe5c6f8e5283fbbb Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 16 Jan 2017 16:05:17 -0500 Subject: Replace remaining CSS interfaces with concrete classes This Cl moves IFDE_CSSValue and IFDE_CSSRule to concrete classes and moves the holding of the type into the base class. Change-Id: Iea29cc55256dd2183b60ca8711367d5dc8daaa24 Reviewed-on: https://pdfium-review.googlesource.com/2178 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- xfa/fde/css/cfde_cssvalue.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 xfa/fde/css/cfde_cssvalue.h (limited to 'xfa/fde/css/cfde_cssvalue.h') diff --git a/xfa/fde/css/cfde_cssvalue.h b/xfa/fde/css/cfde_cssvalue.h new file mode 100644 index 0000000000..17cc565b5d --- /dev/null +++ b/xfa/fde/css/cfde_cssvalue.h @@ -0,0 +1,25 @@ +// Copyright 2017 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef XFA_FDE_CSS_CFDE_CSSVALUE_H_ +#define XFA_FDE_CSS_CFDE_CSSVALUE_H_ + +#include "xfa/fde/css/fde_css.h" + +class CFDE_CSSValue { + public: + virtual ~CFDE_CSSValue(); + + FDE_CSSVALUETYPE GetType() const { return m_value; } + + protected: + explicit CFDE_CSSValue(FDE_CSSVALUETYPE type); + + private: + FDE_CSSVALUETYPE m_value; +}; + +#endif // XFA_FDE_CSS_CFDE_CSSVALUE_H_ -- cgit v1.2.3