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

Side by Side Diff: Source/modules/push_messaging/PushEvent.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 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 #include "config.h" 5 #include "config.h"
6 #include "modules/push_messaging/PushEvent.h" 6 #include "modules/push_messaging/PushEvent.h"
7 7
8 namespace blink { 8 namespace blink {
9 9
10 PushEventInit::PushEventInit() 10 PushEventInit::PushEventInit()
11 { 11 {
12 } 12 }
13 13
14 PushEvent::PushEvent() 14 PushEvent::PushEvent()
15 { 15 {
16 ScriptWrappable::init(this);
17 } 16 }
18 17
19 PushEvent::PushEvent(const AtomicString& type, const String& data) 18 PushEvent::PushEvent(const AtomicString& type, const String& data)
20 : Event(type, /*canBubble=*/false, /*cancelable=*/false) 19 : Event(type, /*canBubble=*/false, /*cancelable=*/false)
21 , m_data(data) 20 , m_data(data)
22 { 21 {
23 ScriptWrappable::init(this);
24 } 22 }
25 23
26 PushEvent::PushEvent(const AtomicString& type, const PushEventInit& initializer) 24 PushEvent::PushEvent(const AtomicString& type, const PushEventInit& initializer)
27 : Event(type, initializer) 25 : Event(type, initializer)
28 , m_data(initializer.data) 26 , m_data(initializer.data)
29 { 27 {
30 ScriptWrappable::init(this);
31 } 28 }
32 29
33 PushEvent::~PushEvent() 30 PushEvent::~PushEvent()
34 { 31 {
35 } 32 }
36 33
37 const AtomicString& PushEvent::interfaceName() const 34 const AtomicString& PushEvent::interfaceName() const
38 { 35 {
39 return EventNames::PushEvent; 36 return EventNames::PushEvent;
40 } 37 }
41 38
42 } // namespace blink 39 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/performance/WorkerPerformance.cpp ('k') | Source/modules/push_messaging/PushManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698