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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 ~MutationObserver(); | 87 ~MutationObserver(); |
88 | 88 |
89 void observe(Node*, const MutationObserverInit&, ExceptionState&); | 89 void observe(Node*, const MutationObserverInit&, ExceptionState&); |
90 MutationRecordVector takeRecords(); | 90 MutationRecordVector takeRecords(); |
91 void disconnect(); | 91 void disconnect(); |
92 void observationStarted(MutationObserverRegistration*); | 92 void observationStarted(MutationObserverRegistration*); |
93 void observationEnded(MutationObserverRegistration*); | 93 void observationEnded(MutationObserverRegistration*); |
94 void enqueueMutationRecord(PassRefPtrWillBeRawPtr<MutationRecord>); | 94 void enqueueMutationRecord(PassRefPtrWillBeRawPtr<MutationRecord>); |
95 void setHasTransientRegistration(); | 95 void setHasTransientRegistration(); |
96 | 96 |
97 WillBeHeapHashSet<RawPtrWillBeMember<Node> > getObservedNodes() const; | 97 WillBeHeapHashSet<RawPtrWillBeMember<Node>> getObservedNodes() const; |
98 | 98 |
99 DECLARE_TRACE(); | 99 DECLARE_TRACE(); |
100 | 100 |
101 private: | 101 private: |
102 struct ObserverLessThan; | 102 struct ObserverLessThan; |
103 | 103 |
104 explicit MutationObserver(PassOwnPtrWillBeRawPtr<MutationCallback>); | 104 explicit MutationObserver(PassOwnPtrWillBeRawPtr<MutationCallback>); |
105 void deliver(); | 105 void deliver(); |
106 bool shouldBeSuspended() const; | 106 bool shouldBeSuspended() const; |
107 | 107 |
108 void dispose(); | 108 void dispose(); |
109 | 109 |
110 OwnPtrWillBeMember<MutationCallback> m_callback; | 110 OwnPtrWillBeMember<MutationCallback> m_callback; |
111 MutationRecordVector m_records; | 111 MutationRecordVector m_records; |
112 MutationObserverRegistrationSet m_registrations; | 112 MutationObserverRegistrationSet m_registrations; |
113 unsigned m_priority; | 113 unsigned m_priority; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace blink | 116 } // namespace blink |
117 | 117 |
118 #endif // MutationObserver_h | 118 #endif // MutationObserver_h |
OLD | NEW |