Index: modules/presentation/Presentation.idl |
diff --git a/modules/presentation/Presentation.idl b/modules/presentation/Presentation.idl |
index 2ec7725fde5ed4f6ae21fb6faeac3b57c4c42357..968abdeb486e370a5c9457a7a5b15fdc9038d016 100644 |
--- a/modules/presentation/Presentation.idl |
+++ b/modules/presentation/Presentation.idl |
@@ -7,16 +7,9 @@ |
[ |
GarbageCollected, |
RuntimeEnabled=Presentation |
-] interface Presentation : EventTarget { |
- // 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; |
+] interface Presentation { |
+ [MeasureAs=PresentationDefaultRequest] attribute PresentationRequest? defaultRequest; |
- // 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; |
+ // This API is available on the receiving browsing context. |
+ [RuntimeEnabled=PresentationReceiver, SameObject] readonly attribute PresentationReceiver? receiver; |
}; |