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

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

Issue 1958093002: CONTINUED Make FrameSelection to hold non-canonicalized positions Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2017-01-16T20:04:35 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;
19 class NodeWithIndex;
18 class SynchronousMutationObserver; 20 class SynchronousMutationObserver;
19 class Text; 21 class Text;
20 22
21 class CORE_EXPORT SynchronousMutationNotifier 23 class CORE_EXPORT SynchronousMutationNotifier
22 : public LifecycleNotifier<Document, SynchronousMutationObserver> { 24 : public LifecycleNotifier<Document, SynchronousMutationObserver> {
23 public: 25 public:
24 // TODO(yosin): We will have |notifyXXX()| functions defined in 26 void notifyChangeAttribute(const Element&);
25 // |SynchronousMutationObserver|.
26 void notifyChangeChildren(const ContainerNode&); 27 void notifyChangeChildren(const ContainerNode&);
27 void notifyMergeTextNodes(Text&, unsigned); 28 void notifyMergeTextNodes(const Text& mergedNode,
29 const NodeWithIndex& nodeToBeRemovedWithIndex,
30 unsigned oldLength);
31 void notifyMoveTreeToNewDocument();
32 void notifyNodeChildrenWillBeRemoved(ContainerNode&);
33 void notifyNodeWillBeRemoved(Node&);
28 void notifySplitTextNode(const Text&); 34 void notifySplitTextNode(const Text&);
29 void notifyUpdateCharacterData(CharacterData*, 35 void notifyUpdateCharacterData(CharacterData*,
30 unsigned offset, 36 unsigned offset,
31 unsigned oldLength, 37 unsigned oldLength,
32 unsigned newLength); 38 unsigned newLength);
33 void notifyNodeChildrenWillBeRemoved(ContainerNode&);
34 void notifyNodeWillBeRemoved(Node&);
35 39
36 protected: 40 protected:
37 SynchronousMutationNotifier(); 41 SynchronousMutationNotifier();
38 42
39 private: 43 private:
40 DISALLOW_COPY_AND_ASSIGN(SynchronousMutationNotifier); 44 DISALLOW_COPY_AND_ASSIGN(SynchronousMutationNotifier);
41 }; 45 };
42 46
43 } // namespace dom 47 } // namespace dom
44 48
45 #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