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

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

Issue 716143003: Make NotificationEvent constructable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "modules/notifications/NotificationEvent.h" 6 #include "modules/notifications/NotificationEvent.h"
7 7
8 namespace blink { 8 namespace blink {
9 9
10 NotificationEventInit::NotificationEventInit() 10 NotificationEventInit::NotificationEventInit()
11 { 11 {
12 } 12 }
13 13
14 NotificationEvent::NotificationEvent() 14 NotificationEvent::NotificationEvent()
15 { 15 {
16 } 16 }
17 17
18 NotificationEvent::NotificationEvent(const AtomicString& type, const Notificatio nEventInit& initializer)
19 : ExtendableEvent(type, initializer)
20 , m_notification(initializer.notification)
21 {
22 }
23
18 NotificationEvent::NotificationEvent(const AtomicString& type, const Notificatio nEventInit& initializer, WaitUntilObserver* observer) 24 NotificationEvent::NotificationEvent(const AtomicString& type, const Notificatio nEventInit& initializer, WaitUntilObserver* observer)
19 : ExtendableEvent(type, initializer, observer) 25 : ExtendableEvent(type, initializer, observer)
20 , m_notification(initializer.notification) 26 , m_notification(initializer.notification)
21 { 27 {
22 } 28 }
23 29
24 NotificationEvent::~NotificationEvent() 30 NotificationEvent::~NotificationEvent()
25 { 31 {
26 } 32 }
27 33
28 const AtomicString& NotificationEvent::interfaceName() const 34 const AtomicString& NotificationEvent::interfaceName() const
29 { 35 {
30 return EventNames::NotificationEvent; 36 return EventNames::NotificationEvent;
31 } 37 }
32 38
33 void NotificationEvent::trace(Visitor* visitor) 39 void NotificationEvent::trace(Visitor* visitor)
34 { 40 {
35 visitor->trace(m_notification); 41 visitor->trace(m_notification);
36 ExtendableEvent::trace(visitor); 42 ExtendableEvent::trace(visitor);
37 } 43 }
38 44
39 } // namespace blink 45 } // 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