Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/CSSStyleVariableReferenceValue.h

Issue 2126713002: [Typed-OM] Add CSSVariableReferenceValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renaming things, remove unused things, add license header Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698