mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
27 lines
875 B
Plaintext
27 lines
875 B
Plaintext
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
*
|
|
* 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/. */
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
[ptr] native JSRuntime(JSRuntime);
|
|
native JSGCCallback(JSGCCallback);
|
|
|
|
interface nsIXPCScriptable;
|
|
|
|
[uuid(364bcec3-7034-4a4e-bff5-b3f796ca9771)]
|
|
interface nsIJSRuntimeService : nsISupports
|
|
{
|
|
readonly attribute JSRuntime runtime;
|
|
readonly attribute nsIXPCScriptable backstagePass;
|
|
|
|
/**
|
|
* 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);
|
|
};
|