Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | interface nsIDOMWindow; |
michael@0 | 9 | |
michael@0 | 10 | [scriptable, uuid(731C6C50-67D6-11d4-9529-0020183BF181)] |
michael@0 | 11 | interface nsICommandHandlerInit : nsISupports |
michael@0 | 12 | { |
michael@0 | 13 | attribute nsIDOMWindow window; |
michael@0 | 14 | }; |
michael@0 | 15 | |
michael@0 | 16 | [scriptable, uuid(34A4FCF0-66FC-11d4-9528-0020183BF181)] |
michael@0 | 17 | interface nsICommandHandler : nsISupports |
michael@0 | 18 | { |
michael@0 | 19 | /* |
michael@0 | 20 | * Execute the specified command with the specified parameters and return |
michael@0 | 21 | * the result to the caller. The format of the command, parameters and |
michael@0 | 22 | * the result are determined by the acutal implementation. |
michael@0 | 23 | */ |
michael@0 | 24 | string exec(in string aCommand, in string aParameters); |
michael@0 | 25 | /* |
michael@0 | 26 | * Query the status of the specified command with the specified parameters |
michael@0 | 27 | * and return the result to the caller. The format of the command, |
michael@0 | 28 | * parameters and the result are determined by the implementation. |
michael@0 | 29 | */ |
michael@0 | 30 | string query(in string aCommand, in string aParameters); |
michael@0 | 31 | }; |
michael@0 | 32 | |
michael@0 | 33 | %{ C++ |
michael@0 | 34 | // {3A449110-66FD-11d4-9528-0020183BF181} - |
michael@0 | 35 | #define NS_COMMANDHANDLER_CID \ |
michael@0 | 36 | { 0x3a449110, 0x66fd, 0x11d4, { 0x95, 0x28, 0x0, 0x20, 0x18, 0x3b, 0xf1, 0x81 } } |
michael@0 | 37 | #define NS_COMMANDHANDLER_CONTRACTID \ |
michael@0 | 38 | "@mozilla.org/embedding/browser/nsCommandHandler;1" |
michael@0 | 39 | %} |
michael@0 | 40 |