OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 #include "core/events/RelatedEvent.h" |
| 7 |
| 8 namespace blink { |
| 9 |
| 10 RelatedEventInit::RelatedEventInit() |
| 11 { |
| 12 } |
| 13 |
| 14 RelatedEvent::~RelatedEvent() |
| 15 { |
| 16 } |
| 17 |
| 18 PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create() |
| 19 { |
| 20 return adoptRefWillBeNoop(new RelatedEvent); |
| 21 } |
| 22 |
| 23 PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create(const AtomicString& ty
pe) |
| 24 { |
| 25 return adoptRefWillBeNoop(new RelatedEvent(type)); |
| 26 } |
| 27 |
| 28 PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create(const AtomicString& ty
pe, const RelatedEventInit& initializer) |
| 29 { |
| 30 return adoptRefWillBeNoop(new RelatedEvent(type, initializer)); |
| 31 } |
| 32 |
| 33 RelatedEvent::RelatedEvent() |
| 34 { |
| 35 ScriptWrappable::init(this); |
| 36 } |
| 37 |
| 38 RelatedEvent::RelatedEvent(const AtomicString& eventType) |
| 39 : Event(eventType, true, true) |
| 40 { |
| 41 ScriptWrappable::init(this); |
| 42 } |
| 43 |
| 44 RelatedEvent::RelatedEvent(const AtomicString& eventType, const RelatedEventInit
& initializer) |
| 45 : Event(eventType, initializer) |
| 46 { |
| 47 ScriptWrappable::init(this); |
| 48 } |
| 49 |
| 50 void RelatedEvent::trace(Visitor* visitor) |
| 51 { |
| 52 visitor->trace(m_relatedTarget); |
| 53 Event::trace(visitor); |
| 54 } |
| 55 |
| 56 } // namespace blink |
OLD | NEW |