blob: bf85fb39a17456f3f6866d22375cfabecc0a2a4c [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#clients-interface
[
Exposed=ServiceWorker,
GarbageCollected,
TypeChecking=Interface,
ImplementedAs=ServiceWorkerClients,
] interface Clients {
[CallWith=ScriptState] Promise<sequence<Client>> matchAll(optional ClientQueryOptions options);
[RuntimeEnabled=ServiceWorkerClientAttributes, CallWith=ScriptState] Promise<WindowClient?> openWindow(USVString url);
[CallWith=ScriptState] Promise<void> claim();
};