1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // http://webscreens.github.io/presentation-api/#navigatorpresentation
9 RuntimeEnabled=Presentation
10 ] interface Presentation : EventTarget {
11 readonly attribute PresentationSession? session;
13 [CallWith=ScriptState] Promise<PresentationSession> startSession(DOMString senderId, [Default=Undefined] optional DOMString presentationId);
14 [CallWith=ScriptState] Promise<PresentationSession> joinSession(DOMString senderId, [Default=Undefined] optional DOMString presentationId);
16 attribute EventHandler onavailablechange;