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

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, 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
OLDNEW
« no previous file with comments | « Source/core/events/PromiseRejectionEvent.h ('k') | Source/core/events/PromiseRejectionEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698