| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef MutationObserverRegistration_h | 31 #ifndef MutationObserverRegistration_h |
| 32 #define MutationObserverRegistration_h | 32 #define MutationObserverRegistration_h |
| 33 | 33 |
| 34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/ScriptWrappable.h" |
| 35 #include "bindings/core/v8/TraceWrapperMember.h" | 35 #include "bindings/core/v8/TraceWrapperMember.h" |
| 36 #include "core/CoreExport.h" |
| 36 #include "core/dom/MutationObserver.h" | 37 #include "core/dom/MutationObserver.h" |
| 37 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
| 38 #include "wtf/HashSet.h" | 39 #include "wtf/HashSet.h" |
| 39 #include "wtf/text/AtomicString.h" | 40 #include "wtf/text/AtomicString.h" |
| 40 #include "wtf/text/AtomicStringHash.h" | 41 #include "wtf/text/AtomicStringHash.h" |
| 41 | 42 |
| 42 namespace blink { | 43 namespace blink { |
| 43 | 44 |
| 44 class QualifiedName; | 45 class QualifiedName; |
| 45 | 46 |
| 46 class MutationObserverRegistration final | 47 class CORE_EXPORT MutationObserverRegistration final |
| 47 : public GarbageCollectedFinalized<MutationObserverRegistration>, | 48 : public GarbageCollectedFinalized<MutationObserverRegistration>, |
| 48 public TraceWrapperBase { | 49 public TraceWrapperBase { |
| 49 public: | 50 public: |
| 50 static MutationObserverRegistration* create( | 51 static MutationObserverRegistration* create( |
| 51 MutationObserver&, | 52 MutationObserver&, |
| 52 Node*, | 53 Node*, |
| 53 MutationObserverOptions, | 54 MutationObserverOptions, |
| 54 const HashSet<AtomicString>& attributeFilter); | 55 const HashSet<AtomicString>& attributeFilter); |
| 55 ~MutationObserverRegistration(); | 56 ~MutationObserverRegistration(); |
| 56 | 57 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 typedef HeapHashSet<Member<Node>> NodeHashSet; | 98 typedef HeapHashSet<Member<Node>> NodeHashSet; |
| 98 Member<NodeHashSet> m_transientRegistrationNodes; | 99 Member<NodeHashSet> m_transientRegistrationNodes; |
| 99 | 100 |
| 100 MutationObserverOptions m_options; | 101 MutationObserverOptions m_options; |
| 101 HashSet<AtomicString> m_attributeFilter; | 102 HashSet<AtomicString> m_attributeFilter; |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace blink | 105 } // namespace blink |
| 105 | 106 |
| 106 #endif // MutationObserverRegistration_h | 107 #endif // MutationObserverRegistration_h |
| OLD | NEW |