gecko-dev/js/xpconnect/idl/nsIJSContextStack.idl

24 lines
727 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 JSContext(JSContext);
[uuid(ff1e7ec6-249b-4bda-9068-7b06ebb58a2a)]
interface nsIJSContextStack : nsISupports
{
readonly attribute int32_t count;
JSContext peek();
};
[uuid(59ad3ff1-a2d3-4c11-b825-098bff3c3e15)]
interface nsIThreadJSContextStack : nsIJSContextStack
{
/* inherits methods of nsIJSContextStack */
[notxpcom,nostdcall] JSContext getSafeJSContext();
};