2013-06-12 01:41:21 +00: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/.
|
|
|
|
*
|
2016-12-19 23:38:42 +00:00
|
|
|
* This IDL file contains utilities to help connect JS promises to our
|
|
|
|
* Web IDL infrastructure.
|
2013-06-12 01:41:21 +00:00
|
|
|
*/
|
|
|
|
|
2016-02-09 22:40:31 +00:00
|
|
|
callback PromiseJobCallback = void();
|
|
|
|
|
2014-01-28 18:14:57 +00:00
|
|
|
[TreatNonCallableAsNull]
|
2013-11-19 18:39:51 +00:00
|
|
|
callback AnyCallback = any (any value);
|
2013-06-12 01:41:21 +00:00
|
|
|
|
2016-02-09 22:40:31 +00:00
|
|
|
// Hack to allow us to have JS owning and properly tracing/CCing/etc a
|
|
|
|
// PromiseNativeHandler.
|
|
|
|
[NoInterfaceObject,
|
|
|
|
Exposed=(Window,Worker,System)]
|
|
|
|
interface PromiseNativeHandler {
|
|
|
|
};
|