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

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: Fixed spaces, remove unused 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/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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/cssom/CSSVariableReferenceValue.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698