michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsIController; michael@0: interface nsIDOMXULCommandDispatcher; michael@0: michael@0: [scriptable, uuid(f36e3ec1-9197-4ad8-8d4c-d3b1927fd6df)] michael@0: interface nsIControllers : nsISupports michael@0: { michael@0: nsIController getControllerForCommand(in string command); michael@0: michael@0: void insertControllerAt(in unsigned long index, in nsIController controller); michael@0: nsIController removeControllerAt(in unsigned long index); michael@0: nsIController getControllerAt(in unsigned long index); michael@0: michael@0: void appendController(in nsIController controller); michael@0: void removeController(in nsIController controller); michael@0: michael@0: /* michael@0: Return an ID for this controller which is unique to this michael@0: nsIControllers. michael@0: */ michael@0: unsigned long getControllerId(in nsIController controller); michael@0: /* michael@0: Get the controller specified by the given ID. michael@0: */ michael@0: nsIController getControllerById(in unsigned long controllerID); michael@0: michael@0: unsigned long getControllerCount(); michael@0: };