| 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 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 Loading... |
| 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 |
| OLD | NEW |