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

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

Issue 2217763003: Remove Blink-WebKit-only document.createEvent strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
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 "modules/push_messaging/PushEvent.h" 5 #include "modules/push_messaging/PushEvent.h"
6 6
7 #include "modules/push_messaging/PushEventInit.h" 7 #include "modules/push_messaging/PushEventInit.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 PushEvent::PushEvent()
12 {
13 }
14
15 PushEvent::PushEvent(const AtomicString& type, PushMessageData* data, WaitUntilO bserver* observer) 11 PushEvent::PushEvent(const AtomicString& type, PushMessageData* data, WaitUntilO bserver* observer)
16 : ExtendableEvent(type, ExtendableEventInit(), observer) 12 : ExtendableEvent(type, ExtendableEventInit(), observer)
17 , m_data(data) 13 , m_data(data)
18 { 14 {
19 } 15 }
20 16
21 PushEvent::PushEvent(const AtomicString& type, const PushEventInit& initializer) 17 PushEvent::PushEvent(const AtomicString& type, const PushEventInit& initializer)
22 : ExtendableEvent(type, initializer) 18 : ExtendableEvent(type, initializer)
23 { 19 {
24 if (initializer.hasData()) 20 if (initializer.hasData())
(...skipping 14 matching lines...) Expand all
39 return m_data.get(); 35 return m_data.get();
40 } 36 }
41 37
42 DEFINE_TRACE(PushEvent) 38 DEFINE_TRACE(PushEvent)
43 { 39 {
44 visitor->trace(m_data); 40 visitor->trace(m_data);
45 ExtendableEvent::trace(visitor); 41 ExtendableEvent::trace(visitor);
46 } 42 }
47 43
48 } // namespace blink 44 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698