Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: Source/core/events/PromiseRejectionEvent.cpp

Issue 1179113007: Implement onunhandledrejection / onrejectionhandled events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698