diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-01-16 16:05:17 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-01-16 21:38:39 +0000 |
commit | 6efd0d7464e1f02ef3cd4f1abe5c6f8e5283fbbb (patch) | |
tree | b99dd792d1a36c1a0175dd89e18d95e286613ff3 /xfa/fde/css/cfde_cssvalue.h | |
parent | cfb856c4744a9e0ff0f0db5602d0a13c835570ce (diff) | |
download | pdfium-6efd0d7464e1f02ef3cd4f1abe5c6f8e5283fbbb.tar.xz |
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 <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/css/cfde_cssvalue.h')
-rw-r--r-- | xfa/fde/css/cfde_cssvalue.h | 25 |
1 files changed, 25 insertions, 0 deletions
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_ |