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

Side by Side Diff: Source/modules/notifications/NotificationEvent.cpp

Issue 718093002: Introduce the NotificationEvent object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add a test Created 6 years, 1 month 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 2014 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 "config.h"
6 #include "modules/notifications/NotificationEvent.h"
7
8 namespace blink {
9
10 NotificationEventInit::NotificationEventInit()
11 {
12 }
13
14 NotificationEvent::NotificationEvent()
15 {
16 }
17
18 NotificationEvent::NotificationEvent(const AtomicString& type, const Notificatio nEventInit& initializer, WaitUntilObserver* observer)
19 : ExtendableEvent(type, initializer, observer)
20 , m_notification(initializer.notification)
21 {
22 }
23
24 NotificationEvent::~NotificationEvent()
25 {
26 }
27
28 const AtomicString& NotificationEvent::interfaceName() const
29 {
30 return EventNames::NotificationEvent;
31 }
32
33 void NotificationEvent::trace(Visitor* visitor)
34 {
35 visitor->trace(m_notification);
36 ExtendableEvent::trace(visitor);
37 }
38
39 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/notifications/NotificationEvent.h ('k') | Source/modules/notifications/NotificationEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698