Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/CSSURIValue.h |
| diff --git a/third_party/WebKit/Source/core/css/CSSURIValue.h b/third_party/WebKit/Source/core/css/CSSURIValue.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2c60bbf702414e6c268a59f38a7d7cb98501f5ee |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/css/CSSURIValue.h |
| @@ -0,0 +1,43 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CSSURIValue_h |
| +#define CSSURIValue_h |
| + |
| +#include "core/CoreExport.h" |
|
Timothy Loh
2015/10/02 05:35:25
not needed?
sashab
2015/10/02 06:07:54
Done.
|
| +#include "core/css/CSSValue.h" |
| +#include "wtf/PassRefPtr.h" |
| +#include "wtf/RefCounted.h" |
| + |
| +namespace blink { |
| + |
| +class CSSURIValue : public CSSValue { |
| +public: |
| + static PassRefPtrWillBeRawPtr<CSSURIValue> create(const String& str) |
| + { |
| + return adoptRefWillBeNoop(new CSSURIValue(str)); |
| + } |
| + |
| + String value() const { return m_string; } |
| + |
| + String customCSSText() const; |
| + |
| + bool equals(const CSSURIValue& other) const |
| + { |
| + return m_string == other.m_string; |
| + } |
| + |
| + DECLARE_TRACE_AFTER_DISPATCH(); |
| + |
| +private: |
| + CSSURIValue(const String&); |
| + |
| + String m_string; |
| +}; |
| + |
| +DEFINE_CSS_VALUE_TYPE_CASTS(CSSURIValue, isURIValue()); |
| + |
| +} // namespace blink |
| + |
| +#endif // CSSURIValue_h |