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

Unified Diff: Source/core/events/MutationEvent.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/events/MouseEvent.h ('k') | Source/core/events/OverflowEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/MutationEvent.h
diff --git a/Source/core/events/MutationEvent.h b/Source/core/events/MutationEvent.h
index 8969796626d86ed8c4b8a2cd6934838c09887603..4a17aeb1841b6c6e03a622c0d29c16a2914ca0ff 100644
--- a/Source/core/events/MutationEvent.h
+++ b/Source/core/events/MutationEvent.h
@@ -29,54 +29,51 @@
namespace blink {
- class MutationEvent FINAL : public Event {
- public:
- virtual ~MutationEvent();
+class MutationEvent FINAL : public Event {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ virtual ~MutationEvent();
- enum attrChangeType {
- MODIFICATION = 1,
- ADDITION = 2,
- REMOVAL = 3
- };
+ enum AttrChangeType {
+ MODIFICATION = 1, // NOLINT
+ ADDITION = 2, // NOLINT
+ REMOVAL = 3 // NOLINT
+ };
- static PassRefPtrWillBeRawPtr<MutationEvent> create()
- {
- return adoptRefWillBeNoop(new MutationEvent);
- }
+ static PassRefPtrWillBeRawPtr<MutationEvent> create()
+ {
+ return adoptRefWillBeNoop(new MutationEvent);
+ }
- static PassRefPtrWillBeRawPtr<MutationEvent> create(
- const AtomicString& type, bool canBubble, PassRefPtrWillBeRawPtr<Node> relatedNode = nullptr,
- const String& prevValue = String(), const String& newValue = String(), const String& attrName = String(), unsigned short attrChange = 0)
- {
- return adoptRefWillBeNoop(new MutationEvent(type, canBubble, false, relatedNode, prevValue, newValue, attrName, attrChange));
- }
+ static PassRefPtrWillBeRawPtr<MutationEvent> create(
+ const AtomicString& type, bool canBubble, PassRefPtrWillBeRawPtr<Node> relatedNode = nullptr,
+ const String& prevValue = String(), const String& newValue = String(), const String& attrName = String(), unsigned short attrChange = 0)
+ {
+ return adoptRefWillBeNoop(new MutationEvent(type, canBubble, false, relatedNode, prevValue, newValue, attrName, attrChange));
+ }
- void initMutationEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<Node> relatedNode,
- const String& prevValue, const String& newValue,
- const String& attrName, unsigned short attrChange);
+ void initMutationEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<Node> relatedNode, const String& prevValue, const String& newValue, const String& attrName, unsigned short attrChange);
- Node* relatedNode() const { return m_relatedNode.get(); }
- String prevValue() const { return m_prevValue; }
- String newValue() const { return m_newValue; }
- String attrName() const { return m_attrName; }
- unsigned short attrChange() const { return m_attrChange; }
+ Node* relatedNode() const { return m_relatedNode.get(); }
+ String prevValue() const { return m_prevValue; }
+ String newValue() const { return m_newValue; }
+ String attrName() const { return m_attrName; }
+ unsigned short attrChange() const { return m_attrChange; }
- virtual const AtomicString& interfaceName() const OVERRIDE;
+ virtual const AtomicString& interfaceName() const OVERRIDE;
- virtual void trace(Visitor*) OVERRIDE;
+ virtual void trace(Visitor*) OVERRIDE;
- private:
- MutationEvent();
- MutationEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<Node> relatedNode,
- const String& prevValue, const String& newValue,
- const String& attrName, unsigned short attrChange);
+private:
+ MutationEvent();
+ MutationEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<Node> relatedNode, const String& prevValue, const String& newValue, const String& attrName, unsigned short attrChange);
- RefPtrWillBeMember<Node> m_relatedNode;
- String m_prevValue;
- String m_newValue;
- String m_attrName;
- unsigned short m_attrChange;
- };
+ RefPtrWillBeMember<Node> m_relatedNode;
+ String m_prevValue;
+ String m_newValue;
+ String m_attrName;
+ unsigned short m_attrChange;
+};
} // namespace blink
« no previous file with comments | « Source/core/events/MouseEvent.h ('k') | Source/core/events/OverflowEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698