2011-12-18 10:08:04 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
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-03-23 20:22:00 +00:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
1999-07-15 05:42:53 +00:00
|
|
|
#include "xpcexception.idl"
|
2000-02-15 06:43:51 +00:00
|
|
|
#include "xpcjsid.idl"
|
1999-09-11 05:21:30 +00:00
|
|
|
#include "nsIComponentManager.idl"
|
1999-03-23 20:22:00 +00:00
|
|
|
|
2011-05-03 20:43:08 +00:00
|
|
|
%{C++
|
|
|
|
#include "jspubtd.h"
|
|
|
|
%}
|
|
|
|
|
2007-07-06 20:13:12 +00:00
|
|
|
interface xpcIJSWeakReference;
|
|
|
|
|
2011-08-16 20:57:23 +00:00
|
|
|
/**
|
|
|
|
* interface of Components.interfacesByID
|
|
|
|
* (interesting stuff only reflected into JavaScript)
|
|
|
|
*/
|
|
|
|
[scriptable, uuid(c99cffac-5aed-4267-ad2f-f4a4c9d4a081)]
|
|
|
|
interface nsIXPCComponents_InterfacesByID : nsISupports
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* interface of Components.interfaces
|
|
|
|
* (interesting stuff only reflected into JavaScript)
|
|
|
|
*/
|
|
|
|
[scriptable, uuid(b8c31bba-79db-4a1d-930d-4cdd68713f9e)]
|
|
|
|
interface nsIXPCComponents_Interfaces : nsISupports
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2000-02-15 06:43:51 +00:00
|
|
|
/**
|
|
|
|
* interface of Components.classes
|
|
|
|
* (interesting stuff only reflected into JavaScript)
|
|
|
|
*/
|
1999-04-06 22:42:10 +00:00
|
|
|
[scriptable, uuid(978ff520-d26c-11d2-9842-006008962422)]
|
2000-02-15 06:43:51 +00:00
|
|
|
interface nsIXPCComponents_Classes : nsISupports
|
1999-03-23 20:22:00 +00:00
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2000-02-15 06:43:51 +00:00
|
|
|
/**
|
|
|
|
* interface of Components.classesByID
|
|
|
|
* (interesting stuff only reflected into JavaScript)
|
|
|
|
*/
|
1999-08-09 05:02:25 +00:00
|
|
|
[scriptable, uuid(336a9590-4d19-11d3-9893-006008962422)]
|
2000-02-15 06:43:51 +00:00
|
|
|
interface nsIXPCComponents_ClassesByID : nsISupports
|
1999-08-09 05:02:25 +00:00
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2000-02-15 06:43:51 +00:00
|
|
|
/**
|
|
|
|
* interface of Components.results
|
|
|
|
* (interesting stuff only reflected into JavaScript)
|
|
|
|
*/
|
1999-08-22 23:56:42 +00:00
|
|
|
[scriptable, uuid(2fc229a0-5860-11d3-9899-006008962422)]
|
2000-02-15 06:43:51 +00:00
|
|
|
interface nsIXPCComponents_Results : nsISupports
|
1999-08-22 23:56:42 +00:00
|
|
|
{
|
|
|
|
};
|
1999-04-03 10:12:50 +00:00
|
|
|
|
2000-02-15 06:43:51 +00:00
|
|
|
/**
|
|
|
|
* interface of Components.ID
|
|
|
|
* (interesting stuff only reflected into JavaScript)
|
|
|
|
*/
|
|
|
|
[scriptable, uuid(7994a6e0-e028-11d3-8f5d-0010a4e73d9a)]
|
|
|
|
interface nsIXPCComponents_ID : nsISupports
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* interface of Components.Exception
|
|
|
|
* (interesting stuff only reflected into JavaScript)
|
|
|
|
*/
|
|
|
|
[scriptable, uuid(5bf039c0-e028-11d3-8f5d-0010a4e73d9a)]
|
|
|
|
interface nsIXPCComponents_Exception : nsISupports
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
2001-05-08 17:42:36 +00:00
|
|
|
* interface of Components.Constructor
|
2000-02-15 06:43:51 +00:00
|
|
|
* (interesting stuff only reflected into JavaScript)
|
|
|
|
*/
|
|
|
|
[scriptable, uuid(88655640-e028-11d3-8f5d-0010a4e73d9a)]
|
|
|
|
interface nsIXPCComponents_Constructor : nsISupports
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
2001-05-08 17:42:36 +00:00
|
|
|
* interface of object returned by Components.Constructor
|
2000-02-15 06:43:51 +00:00
|
|
|
* (additional interesting stuff only reflected into JavaScript)
|
|
|
|
*/
|
|
|
|
[scriptable, uuid(c814ca20-e0dc-11d3-8f5f-0010a4e73d9a)]
|
|
|
|
interface nsIXPCConstructor : nsISupports
|
|
|
|
{
|
|
|
|
readonly attribute nsIJSCID classID;
|
|
|
|
readonly attribute nsIJSIID interfaceID;
|
|
|
|
readonly attribute string initializer;
|
|
|
|
};
|
|
|
|
|
2005-08-25 16:38:58 +00:00
|
|
|
/**
|
|
|
|
* interface of object returned by Components.utils.Sandbox.
|
|
|
|
*/
|
|
|
|
[scriptable, uuid(4f8ae0dc-d266-4a32-875b-6a9de71a8ce9)]
|
|
|
|
interface nsIXPCComponents_utils_Sandbox : nsISupports
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2011-07-01 06:08:48 +00:00
|
|
|
/**
|
|
|
|
* interface for callback to be passed to Cu.schedulePreciseGC
|
|
|
|
*/
|
|
|
|
[scriptable, function, uuid(71000535-b0fd-44d1-8ce0-909760e3953c)]
|
|
|
|
interface ScheduledGCCallback : nsISupports
|
|
|
|
{
|
|
|
|
void callback();
|
|
|
|
};
|
|
|
|
|
2000-02-15 06:43:51 +00:00
|
|
|
/**
|
2005-07-07 19:34:35 +00:00
|
|
|
* interface of Components.utils
|
2000-02-15 06:43:51 +00:00
|
|
|
*/
|
2012-11-21 21:20:04 +00:00
|
|
|
[scriptable, uuid(b3290d8e-b010-4693-a261-10bbf006b8f0)]
|
2005-07-07 19:34:35 +00:00
|
|
|
interface nsIXPCComponents_Utils : nsISupports
|
1999-03-23 20:22:00 +00:00
|
|
|
{
|
1999-04-03 10:12:50 +00:00
|
|
|
|
2005-06-29 14:23:03 +00:00
|
|
|
/* reportError is designed to be called from JavaScript only.
|
|
|
|
*
|
|
|
|
* It will report a JS Error object to the JS console, and return. It
|
|
|
|
* is meant for use in exception handler blocks which want to "eat"
|
|
|
|
* an exception, but still want to report it to the console.
|
|
|
|
*
|
|
|
|
* It must be called with one param, usually an object which was caught by
|
|
|
|
* an exception handler. If it is not a JS error object, the parameter
|
|
|
|
* is converted to a string and reported as a new error.
|
|
|
|
*/
|
2011-12-18 10:10:59 +00:00
|
|
|
[implicit_jscontext] void reportError(in jsval error);
|
Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
2001-05-08 17:42:36 +00:00
|
|
|
|
2002-08-07 23:39:11 +00:00
|
|
|
/* lookupMethod is designed to be called from JavaScript only.
|
|
|
|
*
|
|
|
|
* It returns a method looking only at the idl interfaces and
|
|
|
|
* ignores any overrides or resolvers that might be in place for
|
|
|
|
* a given scriptable wrapped native.
|
|
|
|
* It must be called with two params: an object and a method name.
|
|
|
|
* It returns a function object or throws an exception on error.
|
|
|
|
* This method exists only to solve mozilla browser problems
|
|
|
|
* when chrome attempts to lookup and call methods in content
|
|
|
|
* and *must* not get confused by method properties that have been
|
|
|
|
* replaced in the content JS code. This method is not recommended for
|
|
|
|
* any other use.
|
|
|
|
*/
|
2011-12-18 10:08:04 +00:00
|
|
|
[implicit_jscontext]
|
|
|
|
jsval lookupMethod(in jsval obj, in jsval name);
|
2002-08-07 23:39:11 +00:00
|
|
|
|
2005-08-25 16:38:58 +00:00
|
|
|
readonly attribute nsIXPCComponents_utils_Sandbox Sandbox;
|
|
|
|
|
2005-06-29 14:23:03 +00:00
|
|
|
/*
|
2007-05-22 21:57:42 +00:00
|
|
|
* evalInSandbox is designed to be called from JavaScript only.
|
2005-04-25 18:45:11 +00:00
|
|
|
*
|
2005-08-25 16:38:58 +00:00
|
|
|
* evalInSandbox evaluates the provided source string in the given sandbox.
|
|
|
|
* It returns the result of the evaluation to the caller.
|
2005-04-25 18:45:11 +00:00
|
|
|
*
|
2005-08-25 16:38:58 +00:00
|
|
|
* var s = new C.u.Sandbox("http://www.mozilla.org");
|
|
|
|
* var res = C.u.evalInSandbox("var five = 5; 2 + five", s);
|
2005-06-29 14:23:03 +00:00
|
|
|
* var outerFive = s.five;
|
2005-08-25 16:38:58 +00:00
|
|
|
* s.seven = res;
|
|
|
|
* var thirtyFive = C.u.evalInSandbox("five * seven", s);
|
2005-06-29 14:23:03 +00:00
|
|
|
*/
|
2011-12-18 10:09:56 +00:00
|
|
|
[implicit_jscontext,optional_argc]
|
|
|
|
jsval evalInSandbox(in AString source, in jsval sandbox,
|
|
|
|
[optional] in jsval version,
|
|
|
|
[optional] in jsval filename,
|
|
|
|
[optional] in long lineNo);
|
2007-05-15 23:27:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
2007-05-22 21:57:42 +00:00
|
|
|
* import is designed to be called from JavaScript only.
|
2007-05-15 23:27:40 +00:00
|
|
|
*
|
2007-05-22 21:57:42 +00:00
|
|
|
* Synchronously loads and evaluates the js file located at
|
|
|
|
* 'registryLocation' with a new, fully privileged global object.
|
2007-07-15 18:21:11 +00:00
|
|
|
*
|
|
|
|
* If 'targetObj' is specified and equal to null, returns the
|
|
|
|
* module's global object. Otherwise (if 'targetObj' is not
|
|
|
|
* specified, or 'targetObj' is != null) looks for a property
|
|
|
|
* 'EXPORTED_SYMBOLS' on the new global object. 'EXPORTED_SYMBOLS'
|
|
|
|
* is expected to be an array of strings identifying properties on
|
|
|
|
* the global object. These properties will be installed as
|
|
|
|
* properties on 'targetObj', or, if 'targetObj' is not specified,
|
|
|
|
* on the caller's global object. If 'EXPORTED_SYMBOLS' is not
|
|
|
|
* found, an error is thrown.
|
2007-05-15 23:27:40 +00:00
|
|
|
*
|
2007-07-14 21:43:35 +00:00
|
|
|
* @param resourceURI A resource:// URI string to load the module from.
|
2007-05-22 21:57:42 +00:00
|
|
|
* @param targetObj the object to install the exported properties on.
|
2007-07-15 18:21:11 +00:00
|
|
|
* If this parameter is a primitive value, this method throws
|
|
|
|
* an exception.
|
|
|
|
* @returns the module code's global object.
|
2007-05-22 21:57:42 +00:00
|
|
|
*
|
|
|
|
* The implementation maintains a hash of registryLocation->global obj.
|
|
|
|
* Subsequent invocations of importModule with 'registryLocation'
|
|
|
|
* pointing to the same file will not cause the module to be re-evaluated,
|
2007-05-15 23:27:40 +00:00
|
|
|
* but the symbols in EXPORTED_SYMBOLS will be exported into the
|
2007-05-22 21:57:42 +00:00
|
|
|
* specified target object and the global object returned as above.
|
|
|
|
*
|
|
|
|
* (This comment is duplicated from xpcIJSModuleLoader.)
|
2007-05-15 23:27:40 +00:00
|
|
|
*/
|
2011-12-18 10:09:16 +00:00
|
|
|
[implicit_jscontext,optional_argc]
|
|
|
|
jsval import(in AUTF8String aResourceURI, [optional] in jsval targetObj);
|
2007-07-06 20:13:12 +00:00
|
|
|
|
2011-06-15 18:08:43 +00:00
|
|
|
/*
|
|
|
|
* Unloads the JS module at 'registryLocation'. Existing references to the
|
|
|
|
* module will continue to work but any subsequent import of the module will
|
|
|
|
* reload it and give new reference. If the JS module hasn't yet been
|
|
|
|
* imported then this method will do nothing.
|
|
|
|
*
|
|
|
|
* @param resourceURI A resource:// URI string to unload the module from.
|
|
|
|
*/
|
|
|
|
void unload(in AUTF8String registryLocation);
|
|
|
|
|
2007-07-06 20:13:12 +00:00
|
|
|
/*
|
|
|
|
* To be called from JS only.
|
|
|
|
*
|
|
|
|
* Return a weak reference for the given JS object.
|
|
|
|
*/
|
2011-12-18 10:11:56 +00:00
|
|
|
[implicit_jscontext]
|
|
|
|
xpcIJSWeakReference getWeakReference(in jsval obj);
|
2007-07-06 20:13:12 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* To be called from JS only.
|
|
|
|
*
|
|
|
|
* Force an immediate garbage collection cycle.
|
|
|
|
*/
|
|
|
|
void forceGC();
|
2012-08-10 16:15:02 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* To be called from JS only.
|
|
|
|
*
|
|
|
|
* Force an immediate cycle collection cycle.
|
|
|
|
*/
|
|
|
|
void forceCC();
|
2012-01-19 18:58:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* To be called from JS only.
|
|
|
|
*
|
|
|
|
* Force an immediate shrinking garbage collection cycle.
|
|
|
|
*/
|
|
|
|
void forceShrinkingGC();
|
2010-04-28 20:53:01 +00:00
|
|
|
|
2011-07-01 06:08:48 +00:00
|
|
|
/*
|
|
|
|
* Schedule a garbage collection cycle for a point in the future when no JS
|
|
|
|
* is running. Call the provided function once this has occurred.
|
|
|
|
*/
|
|
|
|
void schedulePreciseGC(in ScheduledGCCallback callback);
|
2012-01-19 18:58:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Schedule a shrinking garbage collection cycle for a point in the future
|
|
|
|
* when no JS is running. Call the provided function once this has occured.
|
|
|
|
*/
|
|
|
|
void schedulePreciseShrinkingGC(in ScheduledGCCallback callback);
|
2011-07-01 06:08:48 +00:00
|
|
|
|
2011-10-13 16:33:57 +00:00
|
|
|
/**
|
|
|
|
* Return the keys in a weak map. This operation is
|
|
|
|
* non-deterministic because it is affected by the scheduling of the
|
|
|
|
* garbage collector and the cycle collector.
|
|
|
|
*
|
|
|
|
* This should only be used to write tests of the interaction of
|
|
|
|
* the GC and CC with weak maps.
|
|
|
|
*
|
|
|
|
* @param aMap weak map or other JavaScript value
|
|
|
|
* @returns If aMap is a weak map object, return the keys of the weak
|
|
|
|
map as an array. Otherwise, return undefined.
|
|
|
|
*/
|
|
|
|
[implicit_jscontext]
|
|
|
|
jsval nondeterministicGetWeakMapKeys(in jsval aMap);
|
|
|
|
|
2012-03-06 19:38:44 +00:00
|
|
|
[implicit_jscontext]
|
|
|
|
jsval getJSTestingFunctions();
|
|
|
|
|
2010-04-28 20:53:01 +00:00
|
|
|
/*
|
|
|
|
* To be called from JS only.
|
|
|
|
*
|
|
|
|
* Returns the global object with which the given object is associated.
|
|
|
|
*
|
2010-04-28 22:54:28 +00:00
|
|
|
* @param obj The JavaScript object whose global is to be gotten.
|
2010-04-28 20:53:01 +00:00
|
|
|
* @return the corresponding global.
|
|
|
|
*/
|
2011-12-03 21:50:16 +00:00
|
|
|
[implicit_jscontext]
|
|
|
|
jsval getGlobalForObject(in jsval obj);
|
2011-05-03 20:43:08 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* To be called from JS only.
|
|
|
|
*
|
|
|
|
* Returns an object created in |vobj|'s compartment.
|
|
|
|
*/
|
|
|
|
[implicit_jscontext]
|
|
|
|
jsval createObjectIn(in jsval vobj);
|
|
|
|
|
2012-06-19 23:54:46 +00:00
|
|
|
/*
|
|
|
|
* To be called from JS only.
|
|
|
|
*
|
|
|
|
* Returns an array created in |vobj|'s compartment.
|
|
|
|
*/
|
|
|
|
[implicit_jscontext]
|
|
|
|
jsval createArrayIn(in jsval vobj);
|
|
|
|
|
2011-05-03 20:43:08 +00:00
|
|
|
/*
|
|
|
|
* To be called from JS only.
|
|
|
|
*
|
|
|
|
* Ensures that all functions come from vobj's scope (and aren't cross
|
|
|
|
* compartment wrappers).
|
|
|
|
*/
|
|
|
|
[implicit_jscontext]
|
|
|
|
void makeObjectPropsNormal(in jsval vobj);
|
2011-10-27 19:24:38 +00:00
|
|
|
|
2012-07-19 16:39:43 +00:00
|
|
|
/**
|
|
|
|
* Determines whether this object is backed by a DeadObjectProxy.
|
|
|
|
*
|
|
|
|
* Dead-wrapper objects hold no other objects alive (they have no outgoing
|
|
|
|
* reference edges) and will throw if you touch them (e.g. by
|
|
|
|
* reading/writing a property).
|
|
|
|
*/
|
|
|
|
bool isDeadWrapper(in jsval obj);
|
|
|
|
|
2012-07-23 13:51:18 +00:00
|
|
|
/*
|
|
|
|
* To be called from JS only. This is for Gecko internal use only, and may
|
|
|
|
* disappear at any moment.
|
|
|
|
*
|
|
|
|
* Forces a recomputation of all wrappers in and out of the compartment
|
2012-11-21 21:20:04 +00:00
|
|
|
* containing |vobj|. If |vobj| is not an object, all wrappers system-wide
|
2012-07-23 13:51:18 +00:00
|
|
|
* are recomputed.
|
|
|
|
*/
|
|
|
|
[implicit_jscontext]
|
|
|
|
void recomputeWrappers([optional] in jsval vobj);
|
|
|
|
|
2012-11-21 21:20:04 +00:00
|
|
|
/*
|
|
|
|
* To be called from JS only. This is for Gecko internal use only, and may
|
|
|
|
* disappear at any moment.
|
|
|
|
*
|
|
|
|
* Enables Xray vision for same-compartment access for the compartment
|
|
|
|
* indicated by |vscope|. All outgoing wrappers are recomputed.
|
|
|
|
*/
|
|
|
|
[implicit_jscontext]
|
|
|
|
void setWantXrays(in jsval vscope);
|
|
|
|
|
2012-09-24 12:46:27 +00:00
|
|
|
/*
|
|
|
|
* This seemingly-paradoxical API allows privileged code to explicitly give
|
|
|
|
* unprivileged code a reference to its own Components object (whereas it's
|
|
|
|
* normally hidden away on a scope chain visible only to XBL methods). See
|
|
|
|
* also SpecialPowers.getComponents.
|
|
|
|
*/
|
|
|
|
[implicit_jscontext]
|
|
|
|
jsval getComponentsForScope(in jsval vscope);
|
|
|
|
|
2012-08-17 22:13:23 +00:00
|
|
|
/*
|
|
|
|
* Dispatches a runnable to the current/main thread. If |scope| is passed,
|
|
|
|
* the runnable will be dispatch in the compartment of |scope|, which
|
|
|
|
* affects which error reporter gets called.
|
|
|
|
*/
|
|
|
|
[implicit_jscontext]
|
|
|
|
void dispatch(in jsval runnable, [optional] in jsval scope);
|
|
|
|
|
2011-10-27 19:24:38 +00:00
|
|
|
/*
|
|
|
|
* To be called from JS only.
|
|
|
|
*
|
|
|
|
* These are the set of JSContext options that privileged script
|
|
|
|
* is allowed to control for the purposes of testing. These
|
|
|
|
* options should be kept in sync with what's controllable in the
|
|
|
|
* jsshell and by setting prefs in nsJSEnvironment.
|
|
|
|
*
|
|
|
|
* NB: Assume that getting any of these attributes is relatively
|
|
|
|
* cheap, but setting any of them is relatively expensive.
|
|
|
|
*/
|
2011-12-03 14:59:01 +00:00
|
|
|
[implicit_jscontext]
|
2011-10-27 19:24:38 +00:00
|
|
|
attribute boolean strict;
|
2011-12-03 14:59:01 +00:00
|
|
|
|
|
|
|
[implicit_jscontext]
|
2011-10-27 19:24:38 +00:00
|
|
|
attribute boolean werror;
|
2011-12-03 14:59:01 +00:00
|
|
|
|
|
|
|
[implicit_jscontext]
|
2011-10-27 19:24:38 +00:00
|
|
|
attribute boolean atline;
|
2011-12-03 14:59:01 +00:00
|
|
|
|
|
|
|
[implicit_jscontext]
|
2011-10-27 19:24:38 +00:00
|
|
|
attribute boolean xml;
|
2011-12-03 14:59:01 +00:00
|
|
|
|
|
|
|
[implicit_jscontext]
|
2011-10-27 19:24:38 +00:00
|
|
|
attribute boolean methodjit;
|
2011-12-03 14:59:01 +00:00
|
|
|
|
|
|
|
[implicit_jscontext]
|
2011-10-27 19:24:38 +00:00
|
|
|
attribute boolean methodjit_always;
|
2011-12-03 14:59:01 +00:00
|
|
|
|
2012-05-05 19:26:16 +00:00
|
|
|
[implicit_jscontext]
|
|
|
|
attribute boolean strict_mode;
|
2012-11-20 01:52:35 +00:00
|
|
|
|
2012-04-19 22:02:47 +00:00
|
|
|
[implicit_jscontext]
|
|
|
|
attribute boolean ion;
|
|
|
|
|
2011-10-27 19:24:38 +00:00
|
|
|
[implicit_jscontext]
|
|
|
|
void setGCZeal(in long zeal);
|
2012-07-17 15:41:07 +00:00
|
|
|
|
|
|
|
[implicit_jscontext]
|
|
|
|
void nukeSandbox(in jsval obj);
|
2005-06-29 14:23:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* interface of JavaScript's 'Components' object
|
|
|
|
*/
|
2012-07-23 13:51:18 +00:00
|
|
|
[scriptable, uuid(8406dedb-23cc-42db-9f69-1f18785091b5)]
|
2005-06-29 14:23:03 +00:00
|
|
|
interface nsIXPCComponents : nsISupports
|
|
|
|
{
|
2011-08-16 20:57:23 +00:00
|
|
|
readonly attribute nsIXPCComponents_Interfaces interfaces;
|
|
|
|
readonly attribute nsIXPCComponents_InterfacesByID interfacesByID;
|
|
|
|
readonly attribute nsIXPCComponents_Classes classes;
|
|
|
|
readonly attribute nsIXPCComponents_ClassesByID classesByID;
|
|
|
|
readonly attribute nsIStackFrame stack;
|
|
|
|
readonly attribute nsIXPCComponents_Results results;
|
|
|
|
readonly attribute nsIComponentManager manager;
|
|
|
|
readonly attribute nsIXPCComponents_Utils utils;
|
|
|
|
|
|
|
|
readonly attribute nsIXPCComponents_ID ID;
|
|
|
|
readonly attribute nsIXPCComponents_Exception Exception;
|
|
|
|
readonly attribute nsIXPCComponents_Constructor Constructor;
|
2005-06-29 14:23:03 +00:00
|
|
|
|
|
|
|
boolean isSuccessCode(in nsresult result);
|
|
|
|
|
2011-03-28 03:59:44 +00:00
|
|
|
/* @deprecated Use Components.utils.lookupMethod instead.
|
2005-06-29 14:23:03 +00:00
|
|
|
* (But are you sure you really want this method any more?
|
|
|
|
* See http://developer-test.mozilla.org/en/docs/XPCNativeWrapper )
|
2005-04-25 18:45:11 +00:00
|
|
|
*/
|
2011-12-18 10:08:04 +00:00
|
|
|
[deprecated,implicit_jscontext]
|
|
|
|
jsval lookupMethod(in jsval obj, in jsval name);
|
2005-06-29 14:23:03 +00:00
|
|
|
|
2011-03-28 03:59:44 +00:00
|
|
|
/* @deprecated Use Components.utils.reportError instead. */
|
2011-12-18 10:10:59 +00:00
|
|
|
[deprecated, implicit_jscontext] void reportError(in jsval error);
|
2005-04-25 18:45:11 +00:00
|
|
|
|
2005-11-21 06:30:34 +00:00
|
|
|
/* 'lastResult' is accessible via JavaScript only */
|
|
|
|
/* 'returnCode' is accessible via JavaScript only */
|
1999-03-23 20:22:00 +00:00
|
|
|
};
|