embedding/browser/webBrowser/nsICommandHandler.idl

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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 interface nsIDOMWindow;
    10 [scriptable, uuid(731C6C50-67D6-11d4-9529-0020183BF181)]
    11 interface nsICommandHandlerInit : nsISupports
    12 {
    13 	attribute nsIDOMWindow window;
    14 };
    16 [scriptable, uuid(34A4FCF0-66FC-11d4-9528-0020183BF181)]
    17 interface nsICommandHandler : nsISupports
    18 {
    19 	/*
    20 	 * Execute the specified command with the specified parameters and return
    21 	 * the result to the caller. The format of the command, parameters and 
    22 	 * the result are determined by the acutal implementation.
    23 	 */
    24     string exec(in string aCommand, in string aParameters);
    25 	/*
    26 	 * Query the status of the specified command with the specified parameters
    27 	 * and return the result to the caller. The format of the command,
    28 	 * parameters and the result are determined by the implementation.
    29 	 */
    30     string query(in string aCommand, in string aParameters);
    31 };
    33 %{ C++
    34 //	{3A449110-66FD-11d4-9528-0020183BF181} - 
    35 #define NS_COMMANDHANDLER_CID \
    36 { 0x3a449110, 0x66fd, 0x11d4, { 0x95, 0x28, 0x0, 0x20, 0x18, 0x3b, 0xf1, 0x81 } }
    37 #define NS_COMMANDHANDLER_CONTRACTID \
    38 "@mozilla.org/embedding/browser/nsCommandHandler;1"
    39 %}

mercurial