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

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

Issue 2367663002: [WIP] Attempt to move everything cssom into a cssom namespace (Closed)
Patch Set: Created 4 years, 2 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698