Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: third_party/WebKit/Source/core/dom/SynchronousMutationObserver.h

Issue 2939223003: Add DocumentShutdown{Notifier,Observer} (Closed)
Patch Set: Add CORE_EXPORT to DocumentShutdownNotifier Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698