Chromium Code Reviews| 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..7f4e921b640e49fa440061a956f9ca743edfdf5c |
| --- /dev/null |
| +++ b/Source/modules/navigatorconnect/ServicePortCollection.idl |
| @@ -0,0 +1,16 @@ |
| +// 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); |
| + attribute EventHandler onconnect; |
|
scheib
2015/06/23 03:57:21
Spec has a "Exposed=ServiceWorker" before the Even
Marijn Kruisselbrink
2015/06/23 04:11:05
Oh yes, will definitely add a comment. I don't und
|
| + attribute EventHandler onmessage; |
| + attribute EventHandler onclose; |
| +}; |