| 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 StylePropertyMap_h | 5 #ifndef StylePropertyMap_h |
| 6 #define StylePropertyMap_h | 6 #define StylePropertyMap_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/CSSStyleValueOrCSSStyleValueSequence.h" | 8 #include "bindings/core/v8/CSSStyleValueOrCSSStyleValueSequence.h" |
| 9 #include "bindings/core/v8/CSSStyleValueOrCSSStyleValueSequenceOrString.h" | 9 #include "bindings/core/v8/CSSStyleValueOrCSSStyleValueSequenceOrString.h" |
| 10 #include "bindings/core/v8/Iterable.h" | 10 #include "bindings/core/v8/Iterable.h" |
| 11 #include "bindings/core/v8/ScriptWrappable.h" | 11 #include "bindings/core/v8/ScriptWrappable.h" |
| 12 #include "core/CSSPropertyNames.h" | 12 #include "core/CSSPropertyNames.h" |
| 13 #include "core/CoreExport.h" | 13 #include "core/CoreExport.h" |
| 14 #include "core/css/cssom/CSSStyleValue.h" | 14 #include "core/css/cssom/CSSStyleValue.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 namespace cssom { |
| 17 | 18 |
| 18 class ExceptionState; | 19 class ExceptionState; |
| 19 | 20 |
| 20 class CORE_EXPORT StylePropertyMap : public GarbageCollectedFinalized<StylePrope
rtyMap>, public ScriptWrappable, public PairIterable<String, CSSStyleValueOrCSSS
tyleValueSequence> { | 21 class CORE_EXPORT StylePropertyMap : public GarbageCollectedFinalized<StylePrope
rtyMap>, public ScriptWrappable, public PairIterable<String, CSSStyleValueOrCSSS
tyleValueSequence> { |
| 21 WTF_MAKE_NONCOPYABLE(StylePropertyMap); | 22 WTF_MAKE_NONCOPYABLE(StylePropertyMap); |
| 22 DEFINE_WRAPPERTYPEINFO(); | 23 DEFINE_WRAPPERTYPEINFO(); |
| 23 public: | 24 public: |
| 24 typedef std::pair<String, CSSStyleValueOrCSSStyleValueSequence> StylePropert
yMapEntry; | 25 typedef std::pair<String, CSSStyleValueOrCSSStyleValueSequence> StylePropert
yMapEntry; |
| 25 | 26 |
| 26 virtual ~StylePropertyMap() { } | 27 virtual ~StylePropertyMap() { } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 46 protected: | 47 protected: |
| 47 StylePropertyMap() { } | 48 StylePropertyMap() { } |
| 48 | 49 |
| 49 virtual CSSStyleValueVector getAllInternal(CSSPropertyID) = 0; | 50 virtual CSSStyleValueVector getAllInternal(CSSPropertyID) = 0; |
| 50 virtual CSSStyleValueVector getAllInternal(AtomicString customPropertyName)
= 0; | 51 virtual CSSStyleValueVector getAllInternal(AtomicString customPropertyName)
= 0; |
| 51 | 52 |
| 52 virtual HeapVector<StylePropertyMapEntry> getIterationEntries() = 0; | 53 virtual HeapVector<StylePropertyMapEntry> getIterationEntries() = 0; |
| 53 IterationSource* startIteration(ScriptState*, ExceptionState&) override; | 54 IterationSource* startIteration(ScriptState*, ExceptionState&) override; |
| 54 }; | 55 }; |
| 55 | 56 |
| 57 } // namespace cssom |
| 56 } // namespace blink | 58 } // namespace blink |
| 57 | 59 |
| 60 |
| 58 #endif | 61 #endif |
| OLD | NEW |