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, bool canBubble, bool cancelable, EventTarget* relatedTarget) |
| 24 { |
| 25 return adoptRefWillBeNoop(new RelatedEvent(type, canBubble, cancelable, rela
tedTarget)); |
| 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& type, bool canBubble, bool cancel
able, EventTarget* relatedTarget) |
| 39 : Event(type, canBubble, cancelable) |
| 40 , m_relatedTarget(relatedTarget) |
| 41 { |
| 42 ScriptWrappable::init(this); |
| 43 } |
| 44 |
| 45 RelatedEvent::RelatedEvent(const AtomicString& eventType, const RelatedEventInit
& initializer) |
| 46 : Event(eventType, initializer) |
| 47 , m_relatedTarget(initializer.relatedTarget) |
| 48 { |
| 49 ScriptWrappable::init(this); |
| 50 } |
| 51 |
| 52 void RelatedEvent::trace(Visitor* visitor) |
| 53 { |
| 54 visitor->trace(m_relatedTarget); |
| 55 Event::trace(visitor); |
| 56 } |
| 57 |
| 58 } // namespace blink |
OLD | NEW |