2001-09-19 22:39:41 +00:00
|
|
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* ----- BEGIN LICENSE BLOCK -----
|
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1999-03-23 20:22:00 +00:00
|
|
|
*
|
2001-09-19 22:39:41 +00:00
|
|
|
* The contents of this file are subject to the Mozilla Public
|
1999-09-28 23:12:09 +00:00
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
2001-09-19 22:39:41 +00:00
|
|
|
* the License at http://www.mozilla.org/MPL/
|
1999-03-23 20:22:00 +00:00
|
|
|
*
|
1999-09-28 23:12:09 +00:00
|
|
|
* Software distributed under the License is distributed on an "AS
|
2001-09-19 22:39:41 +00:00
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
1999-09-28 23:12:09 +00:00
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
1999-03-23 20:22:00 +00:00
|
|
|
*
|
2001-09-19 22:39:41 +00:00
|
|
|
* The Original Code is .
|
1999-09-28 23:12:09 +00:00
|
|
|
*
|
2001-09-19 22:39:41 +00:00
|
|
|
* The Initial Developer of the Original Code is Netscape Communications Corporation.
|
|
|
|
* Portions created by Netscape Communications Corporation are
|
1999-09-28 23:12:09 +00:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
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
|
|
|
* Contributor(s):
|
|
|
|
* John Bandhauer <jband@netscape.com> (original author)
|
1999-09-28 23:12:09 +00:00
|
|
|
*
|
2001-09-19 22:39:41 +00:00
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the LGPL or the GPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ----- END LICENSE BLOCK ----- */
|
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
|
|
|
|
2000-02-15 06:43:51 +00:00
|
|
|
/**
|
|
|
|
* interface of Components.interfaces
|
|
|
|
* (interesting stuff only reflected into JavaScript)
|
|
|
|
*/
|
1999-04-06 22:42:10 +00:00
|
|
|
[scriptable, uuid(4b62a640-d26c-11d2-9842-006008962422)]
|
2000-02-15 06:43:51 +00:00
|
|
|
interface nsIXPCComponents_Interfaces : nsISupports
|
1999-03-23 20:22:00 +00:00
|
|
|
{
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* interface of JavaScript's 'Components' object
|
|
|
|
*/
|
1999-04-06 22:42:10 +00:00
|
|
|
[scriptable, uuid(42624f80-d26c-11d2-9842-006008962422)]
|
1999-03-23 20:22:00 +00:00
|
|
|
interface nsIXPCComponents : nsISupports
|
|
|
|
{
|
2000-02-15 06:43:51 +00:00
|
|
|
readonly attribute nsIXPCComponents_Interfaces interfaces;
|
|
|
|
readonly attribute nsIXPCComponents_Classes classes;
|
|
|
|
readonly attribute nsIXPCComponents_ClassesByID classesByID;
|
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
|
|
|
readonly attribute nsIStackFrame stack;
|
2000-02-15 06:43:51 +00:00
|
|
|
readonly attribute nsIXPCComponents_Results results;
|
|
|
|
readonly attribute nsIComponentManager manager;
|
|
|
|
|
|
|
|
readonly attribute nsIXPCComponents_ID ID;
|
|
|
|
readonly attribute nsIXPCComponents_Exception Exception;
|
|
|
|
readonly attribute nsIXPCComponents_Constructor Constructor;
|
1999-04-03 10:12:50 +00:00
|
|
|
|
2001-03-19 21:34:05 +00:00
|
|
|
boolean isSuccessCode(in nsresult result);
|
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
|
|
|
|
1999-04-03 10:12:50 +00:00
|
|
|
/* 'lastResult' is accessable via JavaScript only */
|
1999-09-02 00:19:42 +00:00
|
|
|
/* 'returnCode' is accessable via JavaScript only */
|
1999-03-23 20:22:00 +00:00
|
|
|
};
|