1 // Copyright 2017 The PDFium Authors 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_CSSSTRINGVALUE_H_ 8 #define CORE_FXCRT_CSS_CFX_CSSSTRINGVALUE_H_ 9 10 #include "core/fxcrt/css/cfx_cssvalue.h" 11 #include "core/fxcrt/widestring.h" 12 13 class CFX_CSSStringValue final : public CFX_CSSValue { 14 public: 15 // Callers always have views, so do the copy here instead of requiring 16 // each of them to create a WideString. 17 explicit CFX_CSSStringValue(WideStringView value); 18 ~CFX_CSSStringValue() override; 19 Value()20 const WideString Value() const { return value_; } 21 22 private: 23 const WideString value_; 24 }; 25 26 #endif // CORE_FXCRT_CSS_CFX_CSSSTRINGVALUE_H_ 27