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

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

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
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 #ifndef InstallEvent_h 5 #ifndef InstallEvent_h
6 #define InstallEvent_h 6 #define InstallEvent_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/serviceworkers/ExtendableEvent.h" 10 #include "modules/serviceworkers/ExtendableEvent.h"
11 #include "modules/serviceworkers/ForeignFetchOptions.h" 11 #include "modules/serviceworkers/ForeignFetchOptions.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class USVStringOrUSVStringSequence; 15 class USVStringOrUSVStringSequence;
16 16
17 class MODULES_EXPORT InstallEvent : public ExtendableEvent { 17 class MODULES_EXPORT InstallEvent : public ExtendableEvent {
18 DEFINE_WRAPPERTYPEINFO(); 18 DEFINE_WRAPPERTYPEINFO();
19 19
20 public: 20 public:
21 static InstallEvent* create();
22 static InstallEvent* create(const AtomicString& type, const ExtendableEventI nit&); 21 static InstallEvent* create(const AtomicString& type, const ExtendableEventI nit&);
23 static InstallEvent* create(const AtomicString& type, const ExtendableEventI nit&, WaitUntilObserver*); 22 static InstallEvent* create(const AtomicString& type, const ExtendableEventI nit&, WaitUntilObserver*);
24 23
25 ~InstallEvent() override; 24 ~InstallEvent() override;
26 25
27 void registerForeignFetch(ExecutionContext*, const ForeignFetchOptions&, Exc eptionState&); 26 void registerForeignFetch(ExecutionContext*, const ForeignFetchOptions&, Exc eptionState&);
28 27
29 const AtomicString& interfaceName() const override; 28 const AtomicString& interfaceName() const override;
30 29
31 protected: 30 protected:
32 InstallEvent();
33 InstallEvent(const AtomicString& type, const ExtendableEventInit&); 31 InstallEvent(const AtomicString& type, const ExtendableEventInit&);
34 InstallEvent(const AtomicString& type, const ExtendableEventInit&, WaitUntil Observer*); 32 InstallEvent(const AtomicString& type, const ExtendableEventInit&, WaitUntil Observer*);
35 }; 33 };
36 34
37 } // namespace blink 35 } // namespace blink
38 36
39 #endif // InstallEvent_h 37 #endif // InstallEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698