| Index: Source/modules/navigatorconnect/ServicePortCollection.idl
|
| diff --git a/Source/modules/navigatorconnect/ServicePortCollection.idl b/Source/modules/navigatorconnect/ServicePortCollection.idl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..29f0f9d6e4424098ef02b79c36991e9230664c1d
|
| --- /dev/null
|
| +++ b/Source/modules/navigatorconnect/ServicePortCollection.idl
|
| @@ -0,0 +1,18 @@
|
| +// Copyright 2015 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://mkruisselbrink.github.io/navigator-connect/#idl-def-ServicePortCollection
|
| +[
|
| + Exposed=(Window,Worker),
|
| + RuntimeEnabled=NavigatorConnect,
|
| +] interface ServicePortCollection : EventTarget {
|
| + [CallWith=ScriptState] Promise<ServicePort> connect(DOMString url, optional ServicePortConnectOptions options);
|
| + [CallWith=ScriptState] Promise<ServicePort> match(ServicePortMatchOptions options);
|
| + [CallWith=ScriptState] Promise<sequence<ServicePort>> matchAll(optional ServicePortMatchOptions options);
|
| + // TODO(mek): The spec has [Exposed=ServiceWorker] for onconnect, this is not currently
|
| + // supported by blink bindings, so figure out if this is needed.
|
| + attribute EventHandler onconnect;
|
| + attribute EventHandler onmessage;
|
| + attribute EventHandler onclose;
|
| +};
|
|
|