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/CSSTokenStreamValue.h

Issue 2158733003: [Typed-OM] Add StringOrCSSVariableReferenceValue type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify variable 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
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 CSSTokenStreamValue_h 5 #ifndef CSSTokenStreamValue_h
6 #define CSSTokenStreamValue_h 6 #define CSSTokenStreamValue_h
7 7
8 #include "bindings/core/v8/Iterable.h" 8 #include "bindings/core/v8/Iterable.h"
9 #include "bindings/core/v8/StringOrCSSVariableReferenceValue.h"
9 #include "core/css/cssom/CSSStyleValue.h" 10 #include "core/css/cssom/CSSStyleValue.h"
10 #include "wtf/Vector.h" 11 #include "wtf/Vector.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class CORE_EXPORT CSSTokenStreamValue final : public CSSStyleValue, public Value Iterable<String> { 15 class CORE_EXPORT CSSTokenStreamValue final : public CSSStyleValue, public Value Iterable<StringOrCSSVariableReferenceValue> {
15 WTF_MAKE_NONCOPYABLE(CSSTokenStreamValue); 16 WTF_MAKE_NONCOPYABLE(CSSTokenStreamValue);
16 DEFINE_WRAPPERTYPEINFO(); 17 DEFINE_WRAPPERTYPEINFO();
17 public: 18 public:
18 static CSSTokenStreamValue* create(const Vector<String>& fragments) 19 static CSSTokenStreamValue* create(const Vector<String>& fragments)
19 { 20 {
20 return new CSSTokenStreamValue(fragments); 21 return new CSSTokenStreamValue(fragments);
21 } 22 }
22 23
23 CSSValue* toCSSValue() const override; 24 CSSValue* toCSSValue() const override;
24 25
(...skipping 12 matching lines...) Expand all
37 38
38 private: 39 private:
39 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 40 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
40 41
41 Vector<String> m_fragments; 42 Vector<String> m_fragments;
42 }; 43 };
43 44
44 } // namespace blink 45 } // namespace blink
45 46
46 #endif // CSSTokenStreamValue_h 47 #endif // CSSTokenStreamValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698