1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/embedding/browser/webBrowser/nsICommandHandler.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 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 nsIDOMWindow; 1.12 + 1.13 +[scriptable, uuid(731C6C50-67D6-11d4-9529-0020183BF181)] 1.14 +interface nsICommandHandlerInit : nsISupports 1.15 +{ 1.16 + attribute nsIDOMWindow window; 1.17 +}; 1.18 + 1.19 +[scriptable, uuid(34A4FCF0-66FC-11d4-9528-0020183BF181)] 1.20 +interface nsICommandHandler : nsISupports 1.21 +{ 1.22 + /* 1.23 + * Execute the specified command with the specified parameters and return 1.24 + * the result to the caller. The format of the command, parameters and 1.25 + * the result are determined by the acutal implementation. 1.26 + */ 1.27 + string exec(in string aCommand, in string aParameters); 1.28 + /* 1.29 + * Query the status of the specified command with the specified parameters 1.30 + * and return the result to the caller. The format of the command, 1.31 + * parameters and the result are determined by the implementation. 1.32 + */ 1.33 + string query(in string aCommand, in string aParameters); 1.34 +}; 1.35 + 1.36 +%{ C++ 1.37 +// {3A449110-66FD-11d4-9528-0020183BF181} - 1.38 +#define NS_COMMANDHANDLER_CID \ 1.39 +{ 0x3a449110, 0x66fd, 0x11d4, { 0x95, 0x28, 0x0, 0x20, 0x18, 0x3b, 0xf1, 0x81 } } 1.40 +#define NS_COMMANDHANDLER_CONTRACTID \ 1.41 +"@mozilla.org/embedding/browser/nsCommandHandler;1" 1.42 +%} 1.43 +