OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "core/css/CSSVariablesMapForEachCallback.h" | 32 #include "core/css/CSSVariablesMapForEachCallback.h" |
33 #include "wtf/RefCounted.h" | 33 #include "wtf/RefCounted.h" |
34 #include "wtf/text/WTFString.h" | 34 #include "wtf/text/WTFString.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 class CSSStyleDeclaration; | 38 class CSSStyleDeclaration; |
39 class CSSVariablesIterator; | 39 class CSSVariablesIterator; |
40 class ExceptionState; | 40 class ExceptionState; |
41 | 41 |
42 class CSSVariablesMap : public RefCounted<CSSVariablesMap> { | 42 class CSSVariablesMap FINAL : public RefCounted<CSSVariablesMap> { |
43 public: | 43 public: |
44 static PassRefPtr<CSSVariablesMap> create(CSSStyleDeclaration* styleDeclarat
ion) | 44 static PassRefPtr<CSSVariablesMap> create(CSSStyleDeclaration* styleDeclarat
ion) |
45 { | 45 { |
46 return adoptRef(new CSSVariablesMap(styleDeclaration)); | 46 return adoptRef(new CSSVariablesMap(styleDeclaration)); |
47 } | 47 } |
48 | 48 |
49 unsigned size() const; | 49 unsigned size() const; |
50 String get(const AtomicString& name) const; | 50 String get(const AtomicString& name) const; |
51 bool has(const AtomicString& name) const; | 51 bool has(const AtomicString& name) const; |
52 void set(const AtomicString& name, const String& value, ExceptionState&); | 52 void set(const AtomicString& name, const String& value, ExceptionState&); |
(...skipping 14 matching lines...) Expand all Loading... |
67 void forEach(PassRefPtr<CSSVariablesMapForEachCallback>, ScriptValue* thisAr
g) const; | 67 void forEach(PassRefPtr<CSSVariablesMapForEachCallback>, ScriptValue* thisAr
g) const; |
68 | 68 |
69 CSSStyleDeclaration* m_styleDeclaration; | 69 CSSStyleDeclaration* m_styleDeclaration; |
70 typedef Vector<CSSVariablesIterator*> Iterators; | 70 typedef Vector<CSSVariablesIterator*> Iterators; |
71 mutable Iterators m_activeIterators; | 71 mutable Iterators m_activeIterators; |
72 }; | 72 }; |
73 | 73 |
74 } // namespace WebCore | 74 } // namespace WebCore |
75 | 75 |
76 #endif // CSSVariablesMap_h | 76 #endif // CSSVariablesMap_h |
OLD | NEW |