Index: modules/presentation/Presentation.idl |
diff --git a/modules/presentation/Presentation.idl b/modules/presentation/Presentation.idl |
index 1546a1dbd34d8fcd9b995e269d37a37cae91205f..2ec7725fde5ed4f6ae21fb6faeac3b57c4c42357 100644 |
--- a/modules/presentation/Presentation.idl |
+++ b/modules/presentation/Presentation.idl |
@@ -2,11 +2,21 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// http://webscreens.github.io/presentation-api/#presentation-interface |
+// https://w3c.github.io/presentation-api/#interface-presentation |
[ |
GarbageCollected, |
RuntimeEnabled=Presentation |
] interface Presentation : EventTarget { |
- attribute EventHandler onavailablechange; |
+ // This API used by controlling browsing context. |
+ [CallWith=ScriptState] Promise<PresentationSession> startSession(DOMString url); |
+ // TODO(avayvod): The |presentationId| argument should not be optional. |
+ [CallWith=ScriptState] Promise<PresentationSession> joinSession(DOMString url, [Default=Undefined] optional DOMString presentationId); |
+ [CallWith=ScriptState] Promise<PresentationAvailability> getAvailability(DOMString url); |
+ attribute EventHandler ondefaultsessionstart; |
+ |
+ // This API used by presenting browsing context. |
+ // TODO(avayvod): The spec has |getSession()| and |getSessions()| instead. |
+ readonly attribute PresentationSession? session; |
+ // TODO(avayvod): attribute EventHandler onsessionavailable; |
}; |