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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 26 matching lines...) Expand all
37 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
38 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class Node; 42 class Node;
43 class QualifiedName; 43 class QualifiedName;
44 template <typename NodeType> class StaticNodeTypeList; 44 template <typename NodeType> class StaticNodeTypeList;
45 typedef StaticNodeTypeList<Node> StaticNodeList; 45 typedef StaticNodeTypeList<Node> StaticNodeList;
46 46
47 class MutationRecord : public RefCountedWillBeGarbageCollectedFinalized<Mutation Record>, public ScriptWrappable { 47 class MutationRecord : public GarbageCollectedFinalized<MutationRecord>, public ScriptWrappable {
48 DEFINE_WRAPPERTYPEINFO(); 48 DEFINE_WRAPPERTYPEINFO();
49 public: 49 public:
50 static PassRefPtrWillBeRawPtr<MutationRecord> createChildList(PassRefPtrWill BeRawPtr<Node> target, PassRefPtrWillBeRawPtr<StaticNodeList> added, PassRefPtrW illBeRawPtr<StaticNodeList> removed, PassRefPtrWillBeRawPtr<Node> previousSiblin g, PassRefPtrWillBeRawPtr<Node> nextSibling); 50 static RawPtr<MutationRecord> createChildList(RawPtr<Node> target, RawPtr<St aticNodeList> added, RawPtr<StaticNodeList> removed, RawPtr<Node> previousSiblin g, RawPtr<Node> nextSibling);
51 static PassRefPtrWillBeRawPtr<MutationRecord> createAttributes(PassRefPtrWil lBeRawPtr<Node> target, const QualifiedName&, const AtomicString& oldValue); 51 static RawPtr<MutationRecord> createAttributes(RawPtr<Node> target, const Qu alifiedName&, const AtomicString& oldValue);
52 static PassRefPtrWillBeRawPtr<MutationRecord> createCharacterData(PassRefPtr WillBeRawPtr<Node> target, const String& oldValue); 52 static RawPtr<MutationRecord> createCharacterData(RawPtr<Node> target, const String& oldValue);
53 static PassRefPtrWillBeRawPtr<MutationRecord> createWithNullOldValue(PassRef PtrWillBeRawPtr<MutationRecord>); 53 static RawPtr<MutationRecord> createWithNullOldValue(RawPtr<MutationRecord>) ;
54 54
55 MutationRecord() { } 55 MutationRecord() { }
56 56
57 virtual ~MutationRecord(); 57 virtual ~MutationRecord();
58 58
59 virtual const AtomicString& type() = 0; 59 virtual const AtomicString& type() = 0;
60 virtual Node* target() = 0; 60 virtual Node* target() = 0;
61 61
62 virtual StaticNodeList* addedNodes() = 0; 62 virtual StaticNodeList* addedNodes() = 0;
63 virtual StaticNodeList* removedNodes() = 0; 63 virtual StaticNodeList* removedNodes() = 0;
64 virtual Node* previousSibling() { return 0; } 64 virtual Node* previousSibling() { return 0; }
65 virtual Node* nextSibling() { return 0; } 65 virtual Node* nextSibling() { return 0; }
66 66
67 virtual const AtomicString& attributeName() { return nullAtom; } 67 virtual const AtomicString& attributeName() { return nullAtom; }
68 virtual const AtomicString& attributeNamespace() { return nullAtom; } 68 virtual const AtomicString& attributeNamespace() { return nullAtom; }
69 69
70 virtual String oldValue() { return String(); } 70 virtual String oldValue() { return String(); }
71 71
72 DEFINE_INLINE_VIRTUAL_TRACE() { } 72 DEFINE_INLINE_VIRTUAL_TRACE() { }
73 73
74 }; 74 };
75 75
76 } // namespace blink 76 } // namespace blink
77 77
78 #endif // MutationRecord_h 78 #endif // MutationRecord_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698