1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/xul/document/public/nsIControllers.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +interface nsIController; 1.12 +interface nsIDOMXULCommandDispatcher; 1.13 + 1.14 +[scriptable, uuid(f36e3ec1-9197-4ad8-8d4c-d3b1927fd6df)] 1.15 +interface nsIControllers : nsISupports 1.16 +{ 1.17 + nsIController getControllerForCommand(in string command); 1.18 + 1.19 + void insertControllerAt(in unsigned long index, in nsIController controller); 1.20 + nsIController removeControllerAt(in unsigned long index); 1.21 + nsIController getControllerAt(in unsigned long index); 1.22 + 1.23 + void appendController(in nsIController controller); 1.24 + void removeController(in nsIController controller); 1.25 + 1.26 + /* 1.27 + Return an ID for this controller which is unique to this 1.28 + nsIControllers. 1.29 + */ 1.30 + unsigned long getControllerId(in nsIController controller); 1.31 + /* 1.32 + Get the controller specified by the given ID. 1.33 + */ 1.34 + nsIController getControllerById(in unsigned long controllerID); 1.35 + 1.36 + unsigned long getControllerCount(); 1.37 +};