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, ScriptPro
mise promise, ScriptValue reason) |
| 16 : Event(type, false, true) |
| 17 , m_promise(promise) |
| 18 , m_reason(reason) |
| 19 { |
| 20 } |
| 21 |
| 22 PromiseRejectionEvent::PromiseRejectionEvent(const AtomicString& type, const Pro
miseRejectionEventInit& initializer) |
| 23 : Event(type, initializer) |
| 24 , m_promise(initializer.promise()) |
| 25 , m_reason(initializer.reason()) |
| 26 { |
| 27 } |
| 28 |
| 29 PromiseRejectionEvent::~PromiseRejectionEvent() |
| 30 { |
| 31 } |
| 32 |
| 33 |
| 34 const AtomicString& PromiseRejectionEvent::interfaceName() const |
| 35 { |
| 36 return EventNames::PromiseRejectionEvent; |
| 37 } |
| 38 |
| 39 DEFINE_TRACE(PromiseRejectionEvent) |
| 40 { |
| 41 Event::trace(visitor); |
| 42 } |
| 43 |
| 44 } // namespace blink |
OLD | NEW |