OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 "modules/serviceworkers/ExtendableMessageEvent.h" |
| 6 |
| 7 namespace blink { |
| 8 |
| 9 PassRefPtrWillBeRawPtr<ExtendableMessageEvent> ExtendableMessageEvent::create() |
| 10 { |
| 11 return adoptRefWillBeNoop(new ExtendableMessageEvent); |
| 12 } |
| 13 |
| 14 PassRefPtrWillBeRawPtr<ExtendableMessageEvent> ExtendableMessageEvent::create(co
nst AtomicString& type, const ExtendableMessageEventInit& initializer) |
| 15 { |
| 16 return adoptRefWillBeNoop(new ExtendableMessageEvent(type, initializer)); |
| 17 } |
| 18 |
| 19 PassRefPtrWillBeRawPtr<ExtendableMessageEvent> ExtendableMessageEvent::create(co
nst AtomicString& type, const ExtendableMessageEventInit& initializer, WaitUntil
Observer* observer) |
| 20 { |
| 21 return adoptRefWillBeNoop(new ExtendableMessageEvent(type, initializer, obse
rver)); |
| 22 } |
| 23 |
| 24 const AtomicString& ExtendableMessageEvent::interfaceName() const |
| 25 { |
| 26 return EventNames::ExtendableMessageEvent; |
| 27 } |
| 28 |
| 29 DEFINE_TRACE(ExtendableMessageEvent) |
| 30 { |
| 31 ExtendableEvent::trace(visitor); |
| 32 } |
| 33 |
| 34 ExtendableMessageEvent::ExtendableMessageEvent() |
| 35 { |
| 36 } |
| 37 |
| 38 ExtendableMessageEvent::ExtendableMessageEvent(const AtomicString& type, const E
xtendableMessageEventInit& initializer) |
| 39 : ExtendableMessageEvent(type, initializer, nullptr) |
| 40 { |
| 41 } |
| 42 |
| 43 ExtendableMessageEvent::ExtendableMessageEvent(const AtomicString& type, const E
xtendableMessageEventInit& initializer, WaitUntilObserver* observer) |
| 44 : ExtendableEvent(type, initializer, observer) |
| 45 { |
| 46 // TODO(nhiroki): Set attributes (crbug.com/543198). |
| 47 } |
| 48 |
| 49 } // namespace blink |
OLD | NEW |