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

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

Issue 1210633002: Update navigator.services API to use the new services.onconnect event [1/3]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport-part3
Patch Set: rebase Created 5 years, 5 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/ServicePortConnectEvent.idl
diff --git a/Source/modules/navigatorconnect/ServicePortConnectEvent.idl b/Source/modules/navigatorconnect/ServicePortConnectEvent.idl
new file mode 100644
index 0000000000000000000000000000000000000000..799c4bbe5f93b308e04ebaaec382b1426050bdca
--- /dev/null
+++ b/Source/modules/navigatorconnect/ServicePortConnectEvent.idl
@@ -0,0 +1,15 @@
+// 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-ServicePortConnectEvent
+[
+ Exposed=ServiceWorker,
+ RuntimeEnabled=NavigatorConnect,
+ TypeChecking=Interface,
+ Constructor(DOMString type, optional ServicePortConnectEventInit eventInitDict),
+] interface ServicePortConnectEvent : ExtendableEvent {
+ readonly attribute DOMString targetURL;
+ readonly attribute DOMString origin;
+ [CallWith=ScriptState, RaisesException] Promise<ServicePort> respondWith(Promise<ServicePortConnectResponse> response);
+};

Powered by Google App Engine
This is Rietveld 408576698