Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2421)

Unified Diff: Source/modules/navigatorconnect/ServicePortCollection.idl

Issue 1192913003: Start implementing new navigator.connect API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: override instead of virtual Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
haraken 2015/06/24 01:18:46 This is now supported :) https://codereview.chrom
+ attribute EventHandler onconnect;
+ attribute EventHandler onmessage;
+ attribute EventHandler onclose;
+};

Powered by Google App Engine
This is Rietveld 408576698