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(const AtomicString& ty
pe) |
| 19 { |
| 20 return adoptRefWillBeNoop(new RelatedEvent(type)); |
| 21 } |
| 22 |
| 23 PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create(const AtomicString& ty
pe, const RelatedEventInit& initializer) |
| 24 { |
| 25 return adoptRefWillBeNoop(new RelatedEvent(type, initializer)); |
| 26 } |
| 27 |
| 28 RelatedEvent::RelatedEvent() |
| 29 { |
| 30 ScriptWrappable::init(this); |
| 31 } |
| 32 |
| 33 RelatedEvent::RelatedEvent(const AtomicString& eventType) |
| 34 : Event(eventType, true, true) |
| 35 { |
| 36 ScriptWrappable::init(this); |
| 37 } |
| 38 |
| 39 RelatedEvent::RelatedEvent(const AtomicString& eventType, const RelatedEventInit
& initializer) |
| 40 : Event(eventType, initializer) |
| 41 { |
| 42 ScriptWrappable::init(this); |
| 43 } |
| 44 |
| 45 } // namespace blink |
OLD | NEW |