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 nsIDOMWindow; michael@0: michael@0: [scriptable, uuid(731C6C50-67D6-11d4-9529-0020183BF181)] michael@0: interface nsICommandHandlerInit : nsISupports michael@0: { michael@0: attribute nsIDOMWindow window; michael@0: }; michael@0: michael@0: [scriptable, uuid(34A4FCF0-66FC-11d4-9528-0020183BF181)] michael@0: interface nsICommandHandler : nsISupports michael@0: { michael@0: /* michael@0: * Execute the specified command with the specified parameters and return michael@0: * the result to the caller. The format of the command, parameters and michael@0: * the result are determined by the acutal implementation. michael@0: */ michael@0: string exec(in string aCommand, in string aParameters); michael@0: /* michael@0: * Query the status of the specified command with the specified parameters michael@0: * and return the result to the caller. The format of the command, michael@0: * parameters and the result are determined by the implementation. michael@0: */ michael@0: string query(in string aCommand, in string aParameters); michael@0: }; michael@0: michael@0: %{ C++ michael@0: // {3A449110-66FD-11d4-9528-0020183BF181} - michael@0: #define NS_COMMANDHANDLER_CID \ michael@0: { 0x3a449110, 0x66fd, 0x11d4, { 0x95, 0x28, 0x0, 0x20, 0x18, 0x3b, 0xf1, 0x81 } } michael@0: #define NS_COMMANDHANDLER_CONTRACTID \ michael@0: "@mozilla.org/embedding/browser/nsCommandHandler;1" michael@0: %} michael@0: