2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2015-03-19 10:48:28 +03:00
|
|
|
/* 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/.
|
2016-11-02 12:53:31 +03:00
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* https://w3c.github.io/presentation-api/#interface-presentation
|
2015-03-19 10:48:28 +03:00
|
|
|
*/
|
|
|
|
|
2016-06-03 14:50:30 +03:00
|
|
|
[Pref="dom.presentation.enabled"]
|
2016-10-04 01:22:34 +03:00
|
|
|
interface Presentation {
|
2015-09-14 05:39:57 +03:00
|
|
|
/*
|
|
|
|
* This should be used by the UA as the default presentation request for the
|
2015-10-12 05:36:31 +03:00
|
|
|
* controller. When the UA wishes to initiate a PresentationConnection on the
|
|
|
|
* controller's behalf, it MUST start a presentation connection using the default
|
2015-09-14 05:39:57 +03:00
|
|
|
* presentation request (as if the controller had called |defaultRequest.start()|).
|
|
|
|
*
|
|
|
|
* Only used by controlling browsing context (senders).
|
|
|
|
*/
|
2016-06-03 14:50:30 +03:00
|
|
|
[Pref="dom.presentation.controller.enabled"]
|
2015-09-14 05:39:57 +03:00
|
|
|
attribute PresentationRequest? defaultRequest;
|
|
|
|
|
2015-03-19 10:48:28 +03:00
|
|
|
/*
|
2015-09-22 13:36:47 +03:00
|
|
|
* This should be available on the receiving browsing context in order to
|
|
|
|
* access the controlling browsing context and communicate with them.
|
2015-03-19 10:48:28 +03:00
|
|
|
*/
|
2016-06-03 14:50:30 +03:00
|
|
|
[SameObject,
|
2016-11-02 12:53:31 +03:00
|
|
|
Pref="dom.presentation.receiver.enabled"]
|
2015-09-22 13:36:47 +03:00
|
|
|
readonly attribute PresentationReceiver? receiver;
|
2015-03-19 10:48:28 +03:00
|
|
|
};
|