2015-09-22 13:36:47 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
[Pref="dom.presentation.enabled",
|
2015-10-21 09:01:08 +03:00
|
|
|
Func="Navigator::HasPresentationSupport"]
|
2015-09-22 13:36:47 +03:00
|
|
|
interface PresentationReceiver : EventTarget {
|
|
|
|
/*
|
2015-10-12 05:36:31 +03:00
|
|
|
* Get the first connected presentation connection in a receiving browsing
|
2015-09-22 13:36:47 +03:00
|
|
|
* context.
|
|
|
|
*/
|
|
|
|
[Throws]
|
2015-10-12 05:36:31 +03:00
|
|
|
Promise<PresentationConnection> getConnection();
|
2015-09-22 13:36:47 +03:00
|
|
|
|
|
|
|
/*
|
2015-10-12 05:36:31 +03:00
|
|
|
* Get all connected presentation connections in a receiving browsing context.
|
2015-09-22 13:36:47 +03:00
|
|
|
*/
|
|
|
|
[Throws]
|
2015-10-12 05:36:31 +03:00
|
|
|
Promise<sequence<PresentationConnection>> getConnections();
|
2015-09-22 13:36:47 +03:00
|
|
|
|
|
|
|
/*
|
2015-10-12 05:36:31 +03:00
|
|
|
* It is called when an incoming connection is connecting.
|
2015-09-22 13:36:47 +03:00
|
|
|
*/
|
2015-10-12 05:36:31 +03:00
|
|
|
attribute EventHandler onconnectionavailable;
|
2015-09-22 13:36:47 +03:00
|
|
|
};
|