mirror of
https://github.com/servo/servo.git
synced 2025-06-30 20:13:39 +01:00
29 lines
801 B
Text
29 lines
801 B
Text
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content of this file was automatically extracted from the
|
|
// "Web Background Synchronization" spec.
|
|
// See: https://wicg.github.io/BackgroundSync/spec/
|
|
|
|
partial interface ServiceWorkerRegistration {
|
|
readonly attribute SyncManager sync;
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface SyncManager {
|
|
Promise<void> register(DOMString tag);
|
|
Promise<sequence<DOMString>> getTags();
|
|
};
|
|
|
|
partial interface ServiceWorkerGlobalScope {
|
|
attribute EventHandler onsync;
|
|
};
|
|
|
|
[Constructor(DOMString type, SyncEventInit init), Exposed=ServiceWorker]
|
|
interface SyncEvent : ExtendableEvent {
|
|
readonly attribute DOMString tag;
|
|
readonly attribute boolean lastChance;
|
|
};
|
|
|
|
dictionary SyncEventInit : ExtendableEventInit {
|
|
required DOMString tag;
|
|
boolean lastChance = false;
|
|
};
|