| 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 SynchronousMutationObserver_h | 5 #ifndef SynchronousMutationObserver_h |
| 6 #define SynchronousMutationObserver_h | 6 #define SynchronousMutationObserver_h |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "platform/LifecycleObserver.h" | 10 #include "platform/LifecycleObserver.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 unsigned offset, | 58 unsigned offset, |
| 59 unsigned oldLength, | 59 unsigned oldLength, |
| 60 unsigned newLength); | 60 unsigned newLength); |
| 61 | 61 |
| 62 // Called before removing container node. | 62 // Called before removing container node. |
| 63 virtual void nodeChildrenWillBeRemoved(ContainerNode&); | 63 virtual void nodeChildrenWillBeRemoved(ContainerNode&); |
| 64 | 64 |
| 65 // Called before removing node. | 65 // Called before removing node. |
| 66 virtual void nodeWillBeRemoved(Node&); | 66 virtual void nodeWillBeRemoved(Node&); |
| 67 | 67 |
| 68 // Called when detaching document. |
| 69 virtual void contextDestroyed(Document*) {} |
| 70 |
| 68 protected: | 71 protected: |
| 69 SynchronousMutationObserver(); | 72 SynchronousMutationObserver(); |
| 70 | 73 |
| 71 private: | 74 private: |
| 72 DISALLOW_COPY_AND_ASSIGN(SynchronousMutationObserver); | 75 DISALLOW_COPY_AND_ASSIGN(SynchronousMutationObserver); |
| 73 }; | 76 }; |
| 74 | 77 |
| 75 } // namespace blink | 78 } // namespace blink |
| 76 | 79 |
| 77 #endif // SynchronousMutationObserver_h | 80 #endif // SynchronousMutationObserver_h |
| OLD | NEW |