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

Side by Side Diff: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.h

Issue 2745573002: Implement the events for Background Fetch (Closed)
Patch Set: more webexposed tests Created 3 years, 9 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BackgroundFetchedEvent_h
6 #define BackgroundFetchedEvent_h
7
8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "modules/background_fetch/BackgroundFetchEvent.h"
10 #include "platform/heap/Handle.h"
11 #include "wtf/text/AtomicString.h"
12
13 namespace blink {
14
15 class BackgroundFetchedEventInit;
16
17 class BackgroundFetchedEvent final : public BackgroundFetchEvent {
18 DEFINE_WRAPPERTYPEINFO();
19
20 public:
21 static BackgroundFetchedEvent* create(
22 const AtomicString& type,
23 const BackgroundFetchedEventInit& initializer) {
24 return new BackgroundFetchedEvent(type, initializer);
25 }
26
27 ~BackgroundFetchedEvent() override;
28
29 // Web Exposed method defined in the IDL file.
30 ScriptPromise updateUI(ScriptState*, String title);
31
32 // ExtendableEvent interface.
33 const AtomicString& interfaceName() const override;
34
35 private:
36 BackgroundFetchedEvent(const AtomicString& type,
37 const BackgroundFetchedEventInit&);
38 };
39
40 } // namespace blink
41
42 #endif // BackgroundFetchedEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698