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

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

Issue 1321453007: Some random Web Notification cleanups (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: typo fix Created 5 years, 3 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
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 #ifndef NotificationEvent_h 5 #ifndef NotificationEvent_h
6 #define NotificationEvent_h 6 #define NotificationEvent_h
7 7
8 #include "modules/EventModules.h" 8 #include "modules/EventModules.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "modules/notifications/Notification.h" 10 #include "modules/notifications/Notification.h"
11 #include "modules/notifications/NotificationEventInit.h"
12 #include "modules/serviceworkers/ExtendableEvent.h" 11 #include "modules/serviceworkers/ExtendableEvent.h"
13 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
14 13
15 namespace blink { 14 namespace blink {
16 15
16 class NotificationEventInit;
17
17 class MODULES_EXPORT NotificationEvent final : public ExtendableEvent { 18 class MODULES_EXPORT NotificationEvent final : public ExtendableEvent {
18 DEFINE_WRAPPERTYPEINFO(); 19 DEFINE_WRAPPERTYPEINFO();
19 public: 20 public:
20 static PassRefPtrWillBeRawPtr<NotificationEvent> create() 21 static PassRefPtrWillBeRawPtr<NotificationEvent> create()
21 { 22 {
22 return adoptRefWillBeNoop(new NotificationEvent); 23 return adoptRefWillBeNoop(new NotificationEvent);
23 } 24 }
24 static PassRefPtrWillBeRawPtr<NotificationEvent> create(const AtomicString& type, const NotificationEventInit& initializer) 25 static PassRefPtrWillBeRawPtr<NotificationEvent> create(const AtomicString& type, const NotificationEventInit& initializer)
25 { 26 {
26 return adoptRefWillBeNoop(new NotificationEvent(type, initializer)); 27 return adoptRefWillBeNoop(new NotificationEvent(type, initializer));
(...skipping 17 matching lines...) Expand all
44 NotificationEvent(const AtomicString& type, const NotificationEventInit&); 45 NotificationEvent(const AtomicString& type, const NotificationEventInit&);
45 NotificationEvent(const AtomicString& type, const NotificationEventInit&, Wa itUntilObserver*); 46 NotificationEvent(const AtomicString& type, const NotificationEventInit&, Wa itUntilObserver*);
46 47
47 PersistentWillBeMember<Notification> m_notification; 48 PersistentWillBeMember<Notification> m_notification;
48 String m_action; 49 String m_action;
49 }; 50 };
50 51
51 } // namespace blink 52 } // namespace blink
52 53
53 #endif // NotificationEvent_h 54 #endif // NotificationEvent_h
OLDNEW
« no previous file with comments | « Source/modules/notifications/NotificationData.h ('k') | Source/modules/notifications/NotificationEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698