| 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" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class CharacterData; | 14 class CharacterData; |
| 15 class ContainerNode; | 15 class ContainerNode; |
| 16 class Document; | 16 class Document; |
| 17 class NodeWithIndex; | 17 class NodeWithIndex; |
| 18 class Text; | 18 class Text; |
| 19 | 19 |
| 20 // This class is a base class for classes which observe DOM tree mutation | 20 // This class is a base class for classes which observe DOM tree mutation |
| 21 // synchronously. If you want to observe DOM tree mutation asynchronously see | 21 // synchronously. If you want to observe DOM tree mutation asynchronously see |
| 22 // MutationObserver Web API. | 22 // MutationObserver Web API. |
| 23 // Note: if you only need to observe Document shutdown, |
| 24 // DocumentShutdownObserver provides this same functionality more efficiently |
| 25 // (since it doesn't observe the other events). |
| 23 // | 26 // |
| 24 // TODO(yosin): Following classes should be derived from this class to | 27 // TODO(yosin): Following classes should be derived from this class to |
| 25 // simplify Document class. | 28 // simplify Document class. |
| 26 // - DragCaret | 29 // - DragCaret |
| 27 // - DocumentMarkerController | 30 // - DocumentMarkerController |
| 28 // - EventHandler | 31 // - EventHandler |
| 29 // - FrameCaret | 32 // - FrameCaret |
| 30 // - InputMethodController | 33 // - InputMethodController |
| 31 // - SelectionController | 34 // - SelectionController |
| 32 // - Range set | 35 // - Range set |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 protected: | 80 protected: |
| 78 SynchronousMutationObserver(); | 81 SynchronousMutationObserver(); |
| 79 | 82 |
| 80 private: | 83 private: |
| 81 DISALLOW_COPY_AND_ASSIGN(SynchronousMutationObserver); | 84 DISALLOW_COPY_AND_ASSIGN(SynchronousMutationObserver); |
| 82 }; | 85 }; |
| 83 | 86 |
| 84 } // namespace blink | 87 } // namespace blink |
| 85 | 88 |
| 86 #endif // SynchronousMutationObserver_h | 89 #endif // SynchronousMutationObserver_h |
| OLD | NEW |