Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CSSStyleVariableReferenceValue_h | |
| 6 #define CSSStyleVariableReferenceValue_h | |
| 7 | |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | |
| 9 #include "core/CSSPropertyNames.h" | |
|
Timothy Loh
2016/07/08 04:36:30
not used (you might need wtf/text/WTFString.h?)
anthonyhkf
2016/07/13 00:14:32
Done.
| |
| 10 #include "core/CoreExport.h" | |
| 11 #include "core/css/CSSValue.h" | |
|
Timothy Loh
2016/07/08 04:36:30
not used
anthonyhkf
2016/07/13 00:14:32
Done.
| |
| 12 | |
| 13 namespace blink { | |
| 14 | |
| 15 class CORE_EXPORT CSSStyleVariableReferenceValue final : public GarbageCollected Finalized<CSSStyleVariableReferenceValue>, public ScriptWrappable { | |
| 16 WTF_MAKE_NONCOPYABLE(CSSStyleVariableReferenceValue); | |
| 17 DEFINE_WRAPPERTYPEINFO(); | |
| 18 public: | |
| 19 virtual ~CSSStyleVariableReferenceValue() { } | |
| 20 | |
| 21 // TODO(anthonyhkf): add fallback: create(variable, fallback) | |
| 22 static CSSStyleVariableReferenceValue* create(const String& variable) | |
| 23 { | |
| 24 return new CSSStyleVariableReferenceValue(variable); | |
| 25 } | |
| 26 | |
| 27 DEFINE_INLINE_TRACE() { } | |
| 28 | |
| 29 const String& variable() const { return m_variable; } | |
| 30 | |
| 31 protected: | |
| 32 CSSStyleVariableReferenceValue(String variable): m_variable(variable) { } | |
| 33 | |
| 34 String m_variable; | |
| 35 }; | |
| 36 | |
| 37 } // namespace blink | |
| 38 | |
| 39 #endif // CSSStyleVariableReference_h | |
| OLD | NEW |