OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 |
| 6 #include "config.h" |
| 7 #include "core/events/PromiseRejectionEvent.h" |
| 8 |
| 9 namespace blink { |
| 10 |
| 11 PromiseRejectionEvent::PromiseRejectionEvent() |
| 12 { |
| 13 } |
| 14 |
| 15 PromiseRejectionEvent::PromiseRejectionEvent(const AtomicString& type, const Pro
miseRejectionEventInit& initializer) |
| 16 : Event(type, initializer) |
| 17 , m_reason(initializer.reason()) |
| 18 { |
| 19 if (initializer.hasPromise()) |
| 20 m_promise = initializer.promise(); |
| 21 } |
| 22 |
| 23 PromiseRejectionEvent::~PromiseRejectionEvent() |
| 24 { |
| 25 } |
| 26 |
| 27 |
| 28 const AtomicString& PromiseRejectionEvent::interfaceName() const |
| 29 { |
| 30 return EventNames::PromiseRejectionEvent; |
| 31 } |
| 32 |
| 33 DEFINE_TRACE(PromiseRejectionEvent) |
| 34 { |
| 35 Event::trace(visitor); |
| 36 } |
| 37 |
| 38 } // namespace blink |
OLD | NEW |