embedding/components/commandhandler/public/nsPICommandUpdater.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/embedding/components/commandhandler/public/nsPICommandUpdater.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     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 +#include "domstubs.idl"
    1.11 +
    1.12 +/*
    1.13 +	The nsPICommandUpdater interface is used by modules that implement
    1.14 +	commands, to tell the command manager that commands need updating.
    1.15 +	This is a private interface; embedders should not use it.
    1.16 +	
    1.17 +	Command-implementing modules should get one of these by a QI
    1.18 +	from an nsICommandManager.
    1.19 +*/
    1.20 +
    1.21 +[scriptable, uuid(B135F602-0BFE-11D5-A73C-F0E420E8293C)]
    1.22 +interface nsPICommandUpdater : nsISupports
    1.23 +{
    1.24 +
    1.25 +  /*
    1.26 +   * Init the command updater, passing an nsIDOMWindow which 
    1.27 +   * is the window that the command updater lives on.
    1.28 +   * 
    1.29 +   */
    1.30 +  void    init(in nsIDOMWindow aWindow);
    1.31 +   
    1.32 +  /*
    1.33 +   * Notify the command manager that the status of a command
    1.34 +   * changed. It may have changed from enabled to disabled,
    1.35 +   * or vice versa, or become toggled etc.
    1.36 +   */
    1.37 +	void		commandStatusChanged(in string aCommandName);
    1.38 +	
    1.39 +};
    1.40 +
    1.41 +

mercurial