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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp

Issue 2216593002: Drop document.createEvent support for things still behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@createEvent
Patch Set: fix LayoutTests Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/InstallEvent.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/serviceworkers/InstallEvent.h" 5 #include "modules/serviceworkers/InstallEvent.h"
6 6
7 #include "core/dom/ExceptionCode.h" 7 #include "core/dom/ExceptionCode.h"
8 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 8 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
9 #include "public/platform/WebSecurityOrigin.h" 9 #include "public/platform/WebSecurityOrigin.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 InstallEvent* InstallEvent::create()
14 {
15 return new InstallEvent();
16 }
17
18 InstallEvent* InstallEvent::create(const AtomicString& type, const ExtendableEve ntInit& eventInit) 13 InstallEvent* InstallEvent::create(const AtomicString& type, const ExtendableEve ntInit& eventInit)
19 { 14 {
20 return new InstallEvent(type, eventInit); 15 return new InstallEvent(type, eventInit);
21 } 16 }
22 17
23 InstallEvent* InstallEvent::create(const AtomicString& type, const ExtendableEve ntInit& eventInit, WaitUntilObserver* observer) 18 InstallEvent* InstallEvent::create(const AtomicString& type, const ExtendableEve ntInit& eventInit, WaitUntilObserver* observer)
24 { 19 {
25 return new InstallEvent(type, eventInit, observer); 20 return new InstallEvent(type, eventInit, observer);
26 } 21 }
27 22
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 83 }
89 } 84 }
90 client->registerForeignFetchScopes(subScopeURLs, parsedOrigins); 85 client->registerForeignFetchScopes(subScopeURLs, parsedOrigins);
91 } 86 }
92 87
93 const AtomicString& InstallEvent::interfaceName() const 88 const AtomicString& InstallEvent::interfaceName() const
94 { 89 {
95 return EventNames::InstallEvent; 90 return EventNames::InstallEvent;
96 } 91 }
97 92
98 InstallEvent::InstallEvent()
99 {
100 }
101
102 InstallEvent::InstallEvent(const AtomicString& type, const ExtendableEventInit& initializer) 93 InstallEvent::InstallEvent(const AtomicString& type, const ExtendableEventInit& initializer)
103 : ExtendableEvent(type, initializer) 94 : ExtendableEvent(type, initializer)
104 { 95 {
105 } 96 }
106 97
107 InstallEvent::InstallEvent(const AtomicString& type, const ExtendableEventInit& initializer, WaitUntilObserver* observer) 98 InstallEvent::InstallEvent(const AtomicString& type, const ExtendableEventInit& initializer, WaitUntilObserver* observer)
108 : ExtendableEvent(type, initializer, observer) 99 : ExtendableEvent(type, initializer, observer)
109 { 100 {
110 } 101 }
111 102
112 } // namespace blink 103 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/InstallEvent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698