2001-09-20 00:02:59 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
1999-09-04 19:25:15 +00:00
|
|
|
*
|
2012-05-21 11:12:37 +00: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/. */
|
1999-09-04 19:25:15 +00:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
[ptr] native JSRuntime(JSRuntime);
|
2009-11-17 19:51:46 +00:00
|
|
|
native JSGCCallback(JSGCCallback);
|
|
|
|
|
2004-12-07 18:13:02 +00:00
|
|
|
interface nsIXPCScriptable;
|
1999-09-04 19:25:15 +00:00
|
|
|
|
2009-11-17 19:51:46 +00:00
|
|
|
[uuid(364bcec3-7034-4a4e-bff5-b3f796ca9771)]
|
1999-09-04 19:25:15 +00:00
|
|
|
interface nsIJSRuntimeService : nsISupports
|
|
|
|
{
|
1999-09-07 19:44:13 +00:00
|
|
|
readonly attribute JSRuntime runtime;
|
2004-12-07 18:13:02 +00:00
|
|
|
readonly attribute nsIXPCScriptable backstagePass;
|
2009-11-17 19:51:46 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Register additional GC callback which will run after the
|
|
|
|
* standard XPConnect callback.
|
|
|
|
*/
|
|
|
|
[noscript, notxpcom] void registerGCCallback(in JSGCCallback func);
|
|
|
|
[noscript, notxpcom] void unregisterGCCallback(in JSGCCallback func);
|
1999-09-04 19:25:15 +00:00
|
|
|
};
|