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

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

Issue 2641803003: Introduce SynchronousMutationObserver::didChangeAttribute() (Closed)
Patch Set: 2017-01-20T14:34:58 Created 3 years, 11 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
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 SynchronousMutationNotifier_h 5 #ifndef SynchronousMutationNotifier_h
6 #define SynchronousMutationNotifier_h 6 #define SynchronousMutationNotifier_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/LifecycleNotifier.h" 10 #include "platform/LifecycleNotifier.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 Element;
17 class Node; 18 class Node;
18 class NodeWithIndex; 19 class NodeWithIndex;
19 class SynchronousMutationObserver; 20 class SynchronousMutationObserver;
20 class Text; 21 class Text;
21 22
22 class CORE_EXPORT SynchronousMutationNotifier 23 class CORE_EXPORT SynchronousMutationNotifier
23 : public LifecycleNotifier<Document, SynchronousMutationObserver> { 24 : public LifecycleNotifier<Document, SynchronousMutationObserver> {
24 public: 25 public:
25 // TODO(yosin): We will have |notifyXXX()| functions defined in 26 void notifyChangeAttribute(const Element&);
26 // |SynchronousMutationObserver|.
27 void notifyChangeChildren(const ContainerNode&); 27 void notifyChangeChildren(const ContainerNode&);
28 void notifyMergeTextNodes(const Text& mergedNode, 28 void notifyMergeTextNodes(const Text& mergedNode,
29 const NodeWithIndex& nodeToBeRemovedWithIndex, 29 const NodeWithIndex& nodeToBeRemovedWithIndex,
30 unsigned oldLength); 30 unsigned oldLength);
31 void notifyMoveTreeToNewDocument(const Node&); 31 void notifyMoveTreeToNewDocument(const Node&);
32 void notifySplitTextNode(const Text&); 32 void notifySplitTextNode(const Text&);
33 void notifyUpdateCharacterData(CharacterData*, 33 void notifyUpdateCharacterData(CharacterData*,
34 unsigned offset, 34 unsigned offset,
35 unsigned oldLength, 35 unsigned oldLength,
36 unsigned newLength); 36 unsigned newLength);
37 void notifyNodeChildrenWillBeRemoved(ContainerNode&); 37 void notifyNodeChildrenWillBeRemoved(ContainerNode&);
38 void notifyNodeWillBeRemoved(Node&); 38 void notifyNodeWillBeRemoved(Node&);
39 39
40 protected: 40 protected:
41 SynchronousMutationNotifier(); 41 SynchronousMutationNotifier();
42 42
43 private: 43 private:
44 DISALLOW_COPY_AND_ASSIGN(SynchronousMutationNotifier); 44 DISALLOW_COPY_AND_ASSIGN(SynchronousMutationNotifier);
45 }; 45 };
46 46
47 } // namespace dom 47 } // namespace dom
48 48
49 #endif // SynchronousMutationNotifier_h 49 #endif // SynchronousMutationNotifier_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/SynchronousMutationNotifier.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698