OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CSSStyleVariableReferenceValue_h | 5 #ifndef CSSStyleVariableReferenceValue_h |
6 #define CSSStyleVariableReferenceValue_h | 6 #define CSSStyleVariableReferenceValue_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
10 #include "core/css/cssom/CSSUnparsedValue.h" | 10 #include "core/css/cssom/CSSUnparsedValue.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
| 13 namespace cssom { |
13 | 14 |
14 class CORE_EXPORT CSSStyleVariableReferenceValue final : public GarbageCollected
Finalized<CSSStyleVariableReferenceValue>, public ScriptWrappable { | 15 class CORE_EXPORT CSSStyleVariableReferenceValue final : public GarbageCollected
Finalized<CSSStyleVariableReferenceValue>, public ScriptWrappable { |
15 WTF_MAKE_NONCOPYABLE(CSSStyleVariableReferenceValue); | 16 WTF_MAKE_NONCOPYABLE(CSSStyleVariableReferenceValue); |
16 DEFINE_WRAPPERTYPEINFO(); | 17 DEFINE_WRAPPERTYPEINFO(); |
17 public: | 18 public: |
18 virtual ~CSSStyleVariableReferenceValue() { } | 19 virtual ~CSSStyleVariableReferenceValue() { } |
19 | 20 |
20 static CSSStyleVariableReferenceValue* create(const String& variable, const
CSSUnparsedValue* fallback) | 21 static CSSStyleVariableReferenceValue* create(const String& variable, const
CSSUnparsedValue* fallback) |
21 { | 22 { |
22 return new CSSStyleVariableReferenceValue(variable, fallback); | 23 return new CSSStyleVariableReferenceValue(variable, fallback); |
(...skipping 12 matching lines...) Expand all Loading... |
35 CSSStyleVariableReferenceValue(const String& variable, const CSSUnparsedValu
e* fallback) | 36 CSSStyleVariableReferenceValue(const String& variable, const CSSUnparsedValu
e* fallback) |
36 : m_variable(variable) | 37 : m_variable(variable) |
37 , m_fallback(fallback) | 38 , m_fallback(fallback) |
38 { | 39 { |
39 } | 40 } |
40 | 41 |
41 String m_variable; | 42 String m_variable; |
42 Member<const CSSUnparsedValue> m_fallback; | 43 Member<const CSSUnparsedValue> m_fallback; |
43 }; | 44 }; |
44 | 45 |
| 46 } // namespace cssom |
45 } // namespace blink | 47 } // namespace blink |
46 | 48 |
| 49 |
47 #endif // CSSStyleVariableReference_h | 50 #endif // CSSStyleVariableReference_h |
OLD | NEW |