1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include
"nsISupports.idl"
8 [scriptable
, uuid(D5B61B82
-1DA4
-11d3
-BF87
-00105A1B0627
)]
9 interface nsIController
: nsISupports
{
10 boolean isCommandEnabled
(in string command
);
11 boolean supportsCommand
(in string command
);
14 void doCommand
(in string command
);
16 void onEvent
(in string eventName
);
22 Enhanced controller interface that allows for passing of parameters
27 interface nsICommandParams
;
29 [scriptable
, uuid(EEC0B435
-7F53
-44FE
-B00A
-CF3EED65C01A
)]
30 interface nsICommandController
: nsISupports
33 void getCommandStateWithParams
( in string command
, in nsICommandParams aCommandParams
);
36 void doCommandWithParams
(in string command
, in nsICommandParams aCommandParams
);
38 Array
<ACString
> getSupportedCommands
();