Index: Source/core/events/RelatedEvent.cpp |
diff --git a/Source/core/events/RelatedEvent.cpp b/Source/core/events/RelatedEvent.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..96dadea110b67fc170fe7fcc0fb562a29a16e2de |
--- /dev/null |
+++ b/Source/core/events/RelatedEvent.cpp |
@@ -0,0 +1,56 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "config.h" |
+#include "core/events/RelatedEvent.h" |
+ |
+namespace blink { |
+ |
+RelatedEventInit::RelatedEventInit() |
+{ |
+} |
+ |
+RelatedEvent::~RelatedEvent() |
+{ |
+} |
+ |
+PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create() |
+{ |
+ return adoptRefWillBeNoop(new RelatedEvent); |
+} |
+ |
+PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create(const AtomicString& type) |
+{ |
+ return adoptRefWillBeNoop(new RelatedEvent(type)); |
+} |
+ |
+PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create(const AtomicString& type, const RelatedEventInit& initializer) |
+{ |
+ return adoptRefWillBeNoop(new RelatedEvent(type, initializer)); |
+} |
+ |
+RelatedEvent::RelatedEvent() |
+{ |
+ ScriptWrappable::init(this); |
+} |
+ |
+RelatedEvent::RelatedEvent(const AtomicString& eventType) |
+ : Event(eventType, true, true) |
+{ |
+ ScriptWrappable::init(this); |
+} |
+ |
+RelatedEvent::RelatedEvent(const AtomicString& eventType, const RelatedEventInit& initializer) |
+ : Event(eventType, initializer) |
+{ |
+ ScriptWrappable::init(this); |
+} |
+ |
+void RelatedEvent::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_relatedTarget); |
+ Event::trace(visitor); |
+} |
+ |
+} // namespace blink |