| 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/CoreExport.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class CORE_EXPORT CSSStyleVariableReferenceValue final : public GarbageCollected
Finalized<CSSStyleVariableReferenceValue>, public ScriptWrappable { |
| 14 WTF_MAKE_NONCOPYABLE(CSSStyleVariableReferenceValue); |
| 15 DEFINE_WRAPPERTYPEINFO(); |
| 16 public: |
| 17 virtual ~CSSStyleVariableReferenceValue() { } |
| 18 |
| 19 // TODO(anthonyhkf): add fallback: create(variable, fallback) |
| 20 static CSSStyleVariableReferenceValue* create(const String& variable) |
| 21 { |
| 22 return new CSSStyleVariableReferenceValue(variable); |
| 23 } |
| 24 |
| 25 DEFINE_INLINE_TRACE() { } |
| 26 |
| 27 const String& variable() const { return m_variable; } |
| 28 |
| 29 protected: |
| 30 CSSStyleVariableReferenceValue(String variable): m_variable(variable) { } |
| 31 |
| 32 String m_variable; |
| 33 }; |
| 34 |
| 35 } // namespace blink |
| 36 |
| 37 #endif // CSSStyleVariableReference_h |
| OLD | NEW |