2001-09-25 05:32:19 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04: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-10-14 14:58:25 +04:00
|
|
|
|
2013-09-23 03:23:30 +04:00
|
|
|
#include "nsISupports.idl"
|
2001-03-30 07:20:56 +04:00
|
|
|
|
2013-09-23 03:23:30 +04:00
|
|
|
interface nsIController;
|
1999-12-06 02:04:22 +03:00
|
|
|
interface nsIDOMXULCommandDispatcher;
|
1999-10-14 14:58:25 +04:00
|
|
|
|
2006-03-04 02:41:39 +03:00
|
|
|
[scriptable, uuid(f36e3ec1-9197-4ad8-8d4c-d3b1927fd6df)]
|
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 20:46:42 +04:00
|
|
|
interface nsIControllers : nsISupports
|
2001-03-30 07:20:56 +04:00
|
|
|
{
|
2002-07-16 02:04:13 +04:00
|
|
|
nsIController getControllerForCommand(in string command);
|
1999-10-14 14:58:25 +04:00
|
|
|
|
|
|
|
void insertControllerAt(in unsigned long index, in nsIController controller);
|
|
|
|
nsIController removeControllerAt(in unsigned long index);
|
|
|
|
nsIController getControllerAt(in unsigned long index);
|
|
|
|
|
|
|
|
void appendController(in nsIController controller);
|
|
|
|
void removeController(in nsIController controller);
|
|
|
|
|
2001-03-30 07:20:56 +04:00
|
|
|
/*
|
|
|
|
Return an ID for this controller which is unique to this
|
|
|
|
nsIControllers.
|
|
|
|
*/
|
|
|
|
unsigned long getControllerId(in nsIController controller);
|
|
|
|
/*
|
|
|
|
Get the controller specified by the given ID.
|
|
|
|
*/
|
2002-10-08 22:25:57 +04:00
|
|
|
nsIController getControllerById(in unsigned long controllerID);
|
2019-05-23 01:37:14 +03:00
|
|
|
|
1999-10-14 14:58:25 +04:00
|
|
|
unsigned long getControllerCount();
|
|
|
|
};
|