Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / presentation / PresentationSession.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/#presentationsession
6
7 enum PresentationSessionState {
8     "connected",
9     "disconnected"
10 };
11
12 [
13     GarbageCollected,
14     RuntimeEnabled=Presentation
15 ] interface PresentationSession : EventTarget {
16     readonly attribute DOMString? id;
17     readonly attribute PresentationSessionState state;
18
19     void postMessage(DOMString message);
20     void close();
21
22     attribute EventHandler onmessage;
23     attribute EventHandler onstatechange;
24 };