Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / presentation / Presentation.idl
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.
4
5 // http://webscreens.github.io/presentation-api/#navigatorpresentation
6
7 [
8     GarbageCollected,
9     RuntimeEnabled=Presentation
10 ] interface Presentation : EventTarget {
11     readonly attribute PresentationSession? session;
12
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);
15
16     attribute EventHandler onavailablechange;
17 };