OLD | NEW |
(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 |
OLD | NEW |